Gizmod::GizmoEventCPUUsage Class Reference

Class for CPU events. More...

#include <GizmoEventCPUUsage.hpp>

Inheritance diagram for Gizmod::GizmoEventCPUUsage:

Inheritance graph
[legend]
Collaboration diagram for Gizmod::GizmoEventCPUUsage:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Class for CPU events.

This class is for all GizmoEventCPUUsages attached to the system.

Definition at line 66 of file GizmoEventCPUUsage.hpp.


Constructor & Destructor Documentation

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]

Destructor.

GizmoEventCPUUsage Destructor.

Definition at line 63 of file GizmoEventCPUUsage.cpp.


Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Returns:
Number of CPUs

Definition at line 98 of file GizmoEventCPUUsage.cpp.

References mEvent.


The documentation for this class was generated from the following files:
Generated on Wed Nov 7 10:07:03 2007 for gizmod by  doxygen 1.5.3