|
geopm 3.2.1.dev237+gbe30cff60
GEOPM - Global Extensible Open Power Manager
|
#include <StatsCollector.hpp>


Public Member Functions | |
| StatsCollectorImp () | |
| Default null constructor without requests. | |
| StatsCollectorImp (const std::vector< geopm_request_s > &requests) | |
| Standard constructor with requests. | |
| StatsCollectorImp (const std::vector< geopm_request_s > &requests, PlatformIO &pio) | |
| Test constructor used to mock PlatformIO. | |
| ~StatsCollectorImp ()=default | |
| Default destructor. | |
| void | update (void) override |
| Sample PlatformIO and update all tracked signals. | |
| std::string | report_yaml (void) const override |
| Generate a YAML report of statistics. | |
| void | reset (void) override |
| May be called after report_yaml() to reset statistics. | |
| report_s | report_struct (void) const override |
| Return report of statistics in a structure representation. | |
| size_t | update_count (void) const override |
| Number of updates since last reset. | |
Public Member Functions inherited from geopm::StatsCollector | |
| StatsCollector ()=default | |
| Default null constructor without requests. | |
| virtual | ~StatsCollector ()=default |
| Default destructor. | |
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. | |
| 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 statistics 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.