lm::LoadMonitor::MemoryStats Class Reference

Collects data about memory usage. More...

Inheritance diagram for lm::LoadMonitor::MemoryStats:

lm::LoadMonitor::StatsProvider

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.

Detailed Description

Collects data about memory usage.


Constructor & Destructor Documentation

lm::LoadMonitor::MemoryStats::MemoryStats ( void   ) 

Constructor.

lm::LoadMonitor::MemoryStats::~MemoryStats ( void   )  [virtual]

Destructor.


Member Function Documentation

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.

Parameters:
description Structure which will receive data collected by this provider.
Returns:
true on success, false otherwise.

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.

Parameters:
sample Structure which will receive data collected by this provider.
Returns:
true on success, false otherwise.

Implements lm::LoadMonitor::StatsProvider.


The documentation for this class was generated from the following files:
Generated on Tue Dec 19 17:43:49 2006 for Load Monitor for Linux by  doxygen 1.4.7