Class bi_tdgraph_metrics_collector

Inheritance Relationships

Base Type

  • public rmetrics::base_collector

Class Documentation

class bi_tdgraph_metrics_collector : public rmetrics::base_collector

Collector for metrics about the current task_dist of tasks in a collection of agents executing tasks in a cta::ds::bi_tdgraph.

Metrics CAN be collected in parallel from robots; concurrent updates to the gathered stats are supported. Metrics are written out at the specified interval.

Public Functions

explicit bi_tdgraph_metrics_collector(std::unique_ptr<rmetrics::base_sink> sink, size_t decomposition_depth)
Parameters:
  • sink – The metrics sink to use.

  • decomposition_depth – The maximum depth of the cta::ds::bi_tdgraph.

void collect(const rmetrics::base_metrics &metrics) override
inline const rmetrics::base_data *data(void) const override
void reset_after_interval(void) override