geopm
3.1.1.dev272+gdfb40a8d
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. More... | |
virtual | ~StatsCollector ()=default |
Default destructor. More... | |
virtual void | update (void)=0 |
Sample PlatformIO and update all tracked signals. More... | |
virtual std::string | report_yaml (void) const =0 |
Generate a YAML report of statistics. More... | |
virtual void | reset (void)=0 |
May be called after report_yaml() to reset statistics. More... | |
virtual report_s | report_struct (void) const =0 |
Return report of statistics in a structure representation. More... | |
virtual size_t | update_count (void) const =0 |
Number of updates since last reset. More... | |
Static Public Member Functions | |
static std::unique_ptr< StatsCollector > | make_unique (const std::vector< geopm_request_s > &requests) |
Factory access method. More... | |
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 statisics 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.