#include <GizmoEventCPUUsage.hpp>
Public Member Functions | |
double | getCPUUsage (size_t CPUIndex) const |
Get the CPU Usage for CPU at the specified Index (0 for ALL cpus, 1 for CPU1, 2 for CPU2, etc). | |
double | getCPUUsageAvg (size_t CPUIndex) const |
Get the Averaged CPU Usage for CPU at the specified Index (0 for ALL cpus, 1 for CPU1, 2 for CPU2, etc). | |
size_t | getNumCPUs () const |
Get the number of CPUs. | |
GizmoEventCPUUsage () | |
Default Constructor. | |
GizmoEventCPUUsage (std::vector< boost::shared_ptr< CPUUsageInfo > > const &Event, bool IsRemote=false) | |
Default Constructor. | |
virtual | ~GizmoEventCPUUsage () |
Destructor. | |
Protected Attributes | |
std::vector < boost::shared_ptr < CPUUsageInfo > > | mEvent |
The Raw Event info. | |
Friends | |
class | boost::serialization::access |
This class is for all GizmoEventCPUUsages attached to the system.
Definition at line 66 of file GizmoEventCPUUsage.hpp.
GizmoEventCPUUsage::GizmoEventCPUUsage | ( | ) |
Default Constructor.
GizmoEventCPUUsage Default Constructor.
Definition at line 50 of file GizmoEventCPUUsage.cpp.
GizmoEventCPUUsage::GizmoEventCPUUsage | ( | std::vector< boost::shared_ptr< CPUUsageInfo > > const & | Event, | |
bool | IsRemote = false | |||
) |
Default Constructor.
GizmoEventCPUUsage Default Constructor.
Definition at line 56 of file GizmoEventCPUUsage.cpp.
References mEvent.
GizmoEventCPUUsage::~GizmoEventCPUUsage | ( | ) | [virtual] |
double GizmoEventCPUUsage::getCPUUsage | ( | size_t | CPUIndex | ) | const |
Get the CPU Usage for CPU at the specified Index (0 for ALL cpus, 1 for CPU1, 2 for CPU2, etc).
Get the CPU Usage for CPU at the specified Index.
CPUIndex | The CPU in question (0 for ALL cpus, 1 for CPU1, 2 for CPU2, etc) |
Definition at line 74 of file GizmoEventCPUUsage.cpp.
References mEvent.
double GizmoEventCPUUsage::getCPUUsageAvg | ( | size_t | CPUIndex | ) | const |
Get the Averaged CPU Usage for CPU at the specified Index (0 for ALL cpus, 1 for CPU1, 2 for CPU2, etc).
Get the CPU Usage for CPU at the specified Index.
CPUIndex | The CPU in question (0 for ALL cpus, 1 for CPU1, 2 for CPU2, etc) |
Definition at line 86 of file GizmoEventCPUUsage.cpp.
References mEvent.
size_t GizmoEventCPUUsage::getNumCPUs | ( | ) | const |
Get the number of CPUs.
Get the number of CPUs the event is describing.
Definition at line 98 of file GizmoEventCPUUsage.cpp.
References mEvent.