Struct dogs::metric_logger::MetricLogger [−][src]
pub struct MetricLogger { /* fields omitted */ }
Expand description
Implements a logger. It allows components to register headers and update values to display workflow:
- a component registers to the MetricLogger. It provides the data names and the MetricLogger returns their IDs.
- a component can update a metric by providing its ID and new value
- a component can request a display of all metrics
Implementations
requests metric information from all the registered components and display the metrics
adds some headers to reference metrics to be later logged. Returns indices of the metric headers.
updates a metric for further logging
Displays metric headers. Should be called at the beginning of the search