Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
dynamicgraph::CPU::System Class Reference

#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< CPUDatavCPUData_
 Vector of CPU informations. More...
 

Private Attributes

bool init_
 

Friends

class boost::serialization::access
 Friend class for serialization. More...
 

Detailed Description

This class gathers information on a computer. This includes a list of CPU

Definition at line 128 of file process-list.hh.

Constructor & Destructor Documentation

◆ System()

System::System ( )

Definition at line 94 of file process-list.cpp.

Member Function Documentation

◆ init()

void System::init ( )

Read /proc/state file to extract CPU count.

Definition at line 99 of file process-list.cpp.

◆ ProcessCPULine()

void System::ProcessCPULine ( unsigned int  cpunb,
std::istringstream &  aCPULine 
)

Definition at line 105 of file process-list.cpp.

◆ readProcStat()

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.

◆ serialize()

template<class Archive >
void dynamicgraph::CPU::System::serialize ( Archive &  ar,
const unsigned int  version 
)
inline

Definition at line 156 of file process-list.hh.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Friend class for serialization.

Definition at line 142 of file process-list.hh.

Member Data Documentation

◆ cpuNb_

unsigned int dynamicgraph::CPU::System::cpuNb_

Number of CPU.

Definition at line 145 of file process-list.hh.

◆ gCPUData_

CPUData dynamicgraph::CPU::System::gCPUData_

Global CPU information.

Definition at line 153 of file process-list.hh.

◆ init_

bool dynamicgraph::CPU::System::init_
private

Definition at line 130 of file process-list.hh.

◆ vCPUData_

std::vector<CPUData> dynamicgraph::CPU::System::vCPUData_

Vector of CPU informations.

Definition at line 150 of file process-list.hh.


The documentation for this class was generated from the following files:


dynamic-graph
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:06:03