Gizmod::CPUUsage Class Reference

CPU Usage monitor. More...

#include <CPUUsage.hpp>

Inheritance diagram for Gizmod::CPUUsage:

Inheritance graph
List of all members.

Public Member Functions

size_t getNumCPUs ()
 Get the number of CPUs on the system.
void init ()
 Start watching!
virtual void onCPUUsage (std::vector< boost::shared_ptr< CPUUsageInfo > > const &Event)
 Event triggered when CPU Usage stats are updated.
void setTimeBetweenUpdates (float Seconds)
 Time between updates in seconds.
void shutdown ()
 Shutodwn the CPU Usage monitor.
 CPUUsage ()
 Default Constructor.
virtual ~CPUUsage ()


struct  CPUUsageThreadProc

Detailed Description

CPU Usage monitor.

Member Function Documentation

size_t CPUUsage::getNumCPUs (  ) 

Get the number of CPUs on the system.

The number of CPUs

void CPUUsage::onCPUUsage ( std::vector< boost::shared_ptr< CPUUsageInfo > > const &  Event  )  [virtual]

Event triggered when CPU Usage stats are updated.

Event A vector of CPU Usage info, where index 0 is ALL processors, 1 is proc 1, 2 is cpu 2, etc

void CPUUsage::setTimeBetweenUpdates ( float  Seconds  ) 

Time between updates in seconds.

Seconds Number of seconds between updates

The documentation for this class was generated from the following files:
Generated on Wed Jun 27 12:43:41 2007 for gizmod by  doxygen 1.4.7