Inheritance diagram for lm::LoadMonitor::MemoryStats:
Public Member Functions | |
MemoryStats (void) | |
Constructor. | |
virtual | ~MemoryStats (void) |
Destructor. | |
virtual bool | QueryData (LoadSample &target) |
Collect data and store them in given sample. | |
virtual bool | QueryData (HardwareDescription &target) |
Collect data and store their descriptions. |
lm::LoadMonitor::MemoryStats::MemoryStats | ( | void | ) |
Constructor.
lm::LoadMonitor::MemoryStats::~MemoryStats | ( | void | ) | [virtual] |
Destructor.
bool lm::LoadMonitor::MemoryStats::QueryData | ( | HardwareDescription & | description | ) | [virtual] |
Collect data and store their descriptions.
Reads total size of the physical memory from /proc/meminfo file.
description | Structure which will receive data collected by this provider. |
Implements lm::LoadMonitor::StatsProvider.
bool lm::LoadMonitor::MemoryStats::QueryData | ( | LoadSample & | sample | ) | [virtual] |
Collect data and store them in given sample.
Reads amount of the free memory from /proc/meminfo file.
sample | Structure which will receive data collected by this provider. |
Implements lm::LoadMonitor::StatsProvider.