Inheritance diagram for lm::LoadMonitor::SystemStats:
Public Member Functions | |
SystemStats (void) | |
Constructor. | |
virtual | ~SystemStats (void) |
Destructor. | |
virtual bool | QueryData (LoadSample &target) |
Collect data and store them in the sample. | |
virtual bool | QueryData (HardwareDescription &) |
Collect data and store their descriptions. |
lm::LoadMonitor::SystemStats::SystemStats | ( | void | ) |
Constructor.
lm::LoadMonitor::SystemStats::~SystemStats | ( | void | ) | [virtual] |
Destructor.
bool lm::LoadMonitor::SystemStats::QueryData | ( | HardwareDescription & | ) | [virtual] |
Collect data and store their descriptions.
This method does nothing.
Implements lm::LoadMonitor::StatsProvider.
bool lm::LoadMonitor::SystemStats::QueryData | ( | LoadSample & | sample | ) | [virtual] |
Collect data and store them in the sample.
This will read /proc/loadavg file and retrieve number of processes.
sample | Structure which will receive data collected by this provider. |
Implements lm::LoadMonitor::StatsProvider.