|
geopm 3.2.1.dev237+gbe30cff60
GEOPM - Global Extensible Open Power Manager
|
Class that accumulates statistics based on PlatformIO requests. More...
#include <StatsCollector.hpp>

Classes | |
| struct | report_s |
Public Member Functions | |
| StatsCollector ()=default | |
| Default null constructor without requests. | |
| virtual | ~StatsCollector ()=default |
| Default destructor. | |
| virtual void | update (void)=0 |
| Sample PlatformIO and update all tracked signals. | |
| virtual std::string | report_yaml (void) const =0 |
| Generate a YAML report of statistics. | |
| virtual void | reset (void)=0 |
| May be called after report_yaml() to reset statistics. | |
| virtual report_s | report_struct (void) const =0 |
| Return report of statistics in a structure representation. | |
| virtual size_t | update_count (void) const =0 |
| Number of updates since last reset. | |
Static Public Member Functions | |
| static std::unique_ptr< StatsCollector > | make_unique (const std::vector< geopm_request_s > &requests) |
| Factory access method. | |
Class that accumulates statistics based on PlatformIO requests.
|
default |
Default null constructor without requests.
|
virtualdefault |
Default destructor.
|
static |
Factory access method.
User specifies a vector of PlatformIO signal requests to be accumulated. The report will generate statistics about each signal request.
| [in] | requests | All signals for monitoring and reporting |
|
pure virtual |
Return report of statistics in a structure representation.
Creates a report_s structure providing statistics about all samples gathered since object construction or since last call to reset().
Implemented in geopm::StatsCollectorImp.
|
pure virtual |
Generate a YAML report of statistics.
Returns a YAML formatted report providing statistics about all samples gathered since object construction or since last call to reset().
Implemented in geopm::StatsCollectorImp.
|
pure virtual |
May be called after report_yaml() to reset statistics.
Used to generate independent reports by clearing all gathered statistics and resetting the begin time.
Implemented in geopm::StatsCollectorImp.
|
pure virtual |
Sample PlatformIO and update all tracked signals.
Implemented in geopm::StatsCollectorImp.
|
pure virtual |
Number of updates since last reset.
Returns the number of times the update() method has been called since object construction or last call to reset().
Implemented in geopm::StatsCollectorImp.