|
MetroCollect
2.3.4
|
Small struct to implement MetricsController delegate. More...


Public Member Functions | |
| void | set (size_t iterations, std::vector< std::pair< std::string, std::string >> metricsNames) |
| Update members. More... | |
| void | metricsContollerCollectedMetricsValues (const MetroCollect::MetricsController &, const MetroCollect::MetricsDiffArray &diff, const MetroCollect::MetricsDataArray &, const MetroCollect::MetricsDataArray &) override |
| Function called every time the MetricsController has collected new values. More... | |
| void | metricsContollerCollectedMetricsStats (const MetroCollect::MetricsController &, const MetroCollect::MetricsController::MetricsStats &) override |
| Function called every time the MetricsController has computed statistics. More... | |
| bool | metricsContollerShouldStopCollectingMetrics (const MetroCollect::MetricsController &) override |
| Function called after each iteration to ask the delegate whether the controller should stop collecting metrics. More... | |
Public Attributes | |
| size_t | i = 0 |
| Iteration index. More... | |
| size_t | iterationCount |
| Number of iterations remaining to be done. More... | |
| std::vector< std::pair< std::chrono::duration< double, std::milli >, std::vector< MetroCollect::DiffValueType > > > | values |
| Array of all collected metrics and their relative timestamps. More... | |
| std::vector< std::pair< std::string, std::string > > | names |
| Name of collected metrics. More... | |
| std::chrono::time_point< std::chrono::system_clock > | start |
| Start time of metric collection. More... | |
Small struct to implement MetricsController delegate.
Definition at line 117 of file MetroCollectFile.cc.
|
inlineoverridevirtual |
Function called every time the MetricsController has computed statistics.
| metricsController | the calling MetricsController |
| metricsStats | computed statistics |
Implements MetroCollect::MetricsControllerDelegate.
Definition at line 144 of file MetroCollectFile.cc.
|
inlineoverridevirtual |
Function called every time the MetricsController has collected new values.
| metricsController | the calling MetricsController |
| metricsDiff | computed metrics differences |
| previousMetrics | earlier collected metrics |
| currentMetrics | latest collected metrics |
Implements MetroCollect::MetricsControllerDelegate.
Definition at line 138 of file MetroCollectFile.cc.

|
inlineoverridevirtual |
Function called after each iteration to ask the delegate whether the controller should stop collecting metrics.
| metricsController | the calling MetricsController |
Implements MetroCollect::MetricsControllerDelegate.
Definition at line 147 of file MetroCollectFile.cc.
|
inline |
Update members.
| iterations | sets the number of iterations |
| metricsNames | sets the metric names |
Definition at line 130 of file MetroCollectFile.cc.

| size_t MetroCollectFile::i = 0 |
Iteration index.
Definition at line 118 of file MetroCollectFile.cc.
| size_t MetroCollectFile::iterationCount |
Number of iterations remaining to be done.
Definition at line 119 of file MetroCollectFile.cc.
| std::vector<std::pair<std::string, std::string> > MetroCollectFile::names |
Name of collected metrics.
Definition at line 121 of file MetroCollectFile.cc.
| std::chrono::time_point<std::chrono::system_clock> MetroCollectFile::start |
Start time of metric collection.
Definition at line 122 of file MetroCollectFile.cc.
| std::vector<std::pair<std::chrono::duration<double, std::milli>, std::vector<MetroCollect::DiffValueType> > > MetroCollectFile::values |
Array of all collected metrics and their relative timestamps.
Definition at line 120 of file MetroCollectFile.cc.