#include <process-list.hh>
Public Member Functions | |
void | init () |
Read /proc/state file to extract CPU count. More... | |
void | ProcessCPULine (unsigned int cpunb, std::istringstream &aCPULine) |
void | readProcStat () |
Update CPU data information from /proc/stat. More... | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
System () | |
Public Attributes | |
unsigned int | cpuNb_ |
Number of CPU. More... | |
CPUData | gCPUData_ |
Global CPU information. More... | |
std::vector< CPUData > | vCPUData_ |
Vector of CPU informations. More... | |
Private Attributes | |
bool | init_ |
Friends | |
class | boost::serialization::access |
Friend class for serialization. More... | |
This class gathers information on a computer. This includes a list of CPU
Definition at line 128 of file process-list.hh.
System::System | ( | ) |
Definition at line 94 of file process-list.cpp.
void System::init | ( | ) |
Read /proc/state file to extract CPU count.
Definition at line 99 of file process-list.cpp.
void System::ProcessCPULine | ( | unsigned int | cpunb, |
std::istringstream & | aCPULine | ||
) |
Definition at line 105 of file process-list.cpp.
void System::readProcStat | ( | ) |
Update CPU data information from /proc/stat.
The number of CPU has been detected by going through /proc/stat.
Definition at line 109 of file process-list.cpp.
|
inline |
Definition at line 156 of file process-list.hh.
|
friend |
Friend class for serialization.
Definition at line 142 of file process-list.hh.
unsigned int dynamicgraph::CPU::System::cpuNb_ |
Number of CPU.
Definition at line 145 of file process-list.hh.
CPUData dynamicgraph::CPU::System::gCPUData_ |
Global CPU information.
Definition at line 153 of file process-list.hh.
|
private |
Definition at line 130 of file process-list.hh.
std::vector<CPUData> dynamicgraph::CPU::System::vCPUData_ |
Vector of CPU informations.
Definition at line 150 of file process-list.hh.