#include <CPUUsage.hpp>
Inheritance diagram for Gizmod::CPUUsage:
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 () |
Destructor. | |
Classes | |
struct | CPUUsageThreadProc |
size_t CPUUsage::getNumCPUs | ( | ) |
Get the number of CPUs on the system.
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 |