This class gathers information on a computer. More...
#include <dynamic-graph/process-list.hh>
Public Member Functions | |
| System () | |
| void | init () |
| Read /proc/state file to extract CPU count. More... | |
| void | readProcStat () |
| Update CPU data information from /proc/stat. More... | |
| void | ProcessCPULine (unsigned int cpunb, std::istringstream &aCPULine) |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Public Attributes | |
| unsigned int | cpuNb_ |
| Number of CPU. More... | |
| std::vector< CPUData > | vCPUData_ |
| Vector of CPU informations. More... | |
| CPUData | gCPUData_ |
| Global CPU information. More... | |
Friends | |
| class | boost::serialization::access |
| Friend class for serialization. More... | |
This class gathers information on a computer.
This includes a list of CPU
| dynamicgraph::CPU::System::System | ( | ) |
| void dynamicgraph::CPU::System::init | ( | ) |
Read /proc/state file to extract CPU count.
| void dynamicgraph::CPU::System::ProcessCPULine | ( | unsigned int | cpunb, |
| std::istringstream & | aCPULine | ||
| ) |
| void dynamicgraph::CPU::System::readProcStat | ( | ) |
Update CPU data information from /proc/stat.
|
inline |
|
friend |
Friend class for serialization.
| unsigned int dynamicgraph::CPU::System::cpuNb_ |
Number of CPU.