Class BenchmarkPublisher

Class Documentation

class BenchmarkPublisher

Public Functions

BenchmarkPublisher(const rclcpp::Node::SharedPtr &node, const std::string &topic)
void tick(const std::string &name)
double tock(bool log = true)

Protected Attributes

std::list<BenchmarkContext> stack_
std::unordered_map<std::string, int> counter_
rclcpp::Node::SharedPtr node_
rclcpp::Publisher<metro_benchmark_msgs::msg::ComputeTime>::SharedPtr pub_