geopm
3.1.1.dev272+gdfb40a8d
GEOPM - Global Extensible Open Power Manager
|
#include <StatsCollector.hpp>
Public Member Functions | |
StatsCollectorImp () | |
Default null constructor without requests. More... | |
StatsCollectorImp (const std::vector< geopm_request_s > &requests) | |
Standard constructor with requests. More... | |
StatsCollectorImp (const std::vector< geopm_request_s > &requests, PlatformIO &pio) | |
Test constructor used to mock PlatformIO. More... | |
~StatsCollectorImp ()=default | |
Default destructor. More... | |
void | update (void) override |
Sample PlatformIO and update all tracked signals. More... | |
std::string | report_yaml (void) const override |
Generate a YAML report of statistics. More... | |
void | reset (void) override |
May be called after report_yaml() to reset statistics. More... | |
report_s | report_struct (void) const override |
Return report of statistics in a structure representation. More... | |
size_t | update_count (void) const override |
Number of updates since last reset. More... | |
Public Member Functions inherited from geopm::StatsCollector | |
StatsCollector ()=default | |
Default null constructor without requests. More... | |
virtual | ~StatsCollector ()=default |
Default destructor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from geopm::StatsCollector | |
static std::unique_ptr< StatsCollector > | make_unique (const std::vector< geopm_request_s > &requests) |
Factory access method. More... | |
geopm::StatsCollectorImp::StatsCollectorImp | ( | ) |
Default null constructor without requests.
geopm::StatsCollectorImp::StatsCollectorImp | ( | const std::vector< geopm_request_s > & | requests | ) |
Standard constructor with requests.
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 |
geopm::StatsCollectorImp::StatsCollectorImp | ( | const std::vector< geopm_request_s > & | requests, |
PlatformIO & | pio | ||
) |
Test constructor used to mock PlatformIO.
|
default |
Default destructor.
|
overridevirtual |
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().
Implements geopm::StatsCollector.
|
overridevirtual |
Generate a YAML report of statistics.
Returns a YAML formatted report providing statisics about all samples gathered since object construction or since last call to reset().
Implements geopm::StatsCollector.
|
overridevirtual |
May be called after report_yaml() to reset statistics.
Used to generate independent reports by clearing all gathered statistics and resetting the begin time.
Implements geopm::StatsCollector.
|
overridevirtual |
Sample PlatformIO and update all tracked signals.
Implements geopm::StatsCollector.
|
overridevirtual |
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().
Implements geopm::StatsCollector.