cpuInfo Class Reference

General CPU characteristics. More...

Public Member Functions

 cpuInfo ()
 Construct and populate with information. More...
 
 ~cpuInfo ()=default
 Destructor. More...
 
void write (Ostream &os) const
 Write content as dictionary entries. More...
 
 cpuInfo ()
 Construct and populate with information. More...
 
 ~cpuInfo ()=default
 Destructor. More...
 
void write (Ostream &os) const
 Write content as dictionary entries. More...
 

Detailed Description

General CPU characteristics.

If the machine has multiple cpus/cores, only the characteristics of the first core are used.

Note
Windows variant only provides the number of cores.
Source files

If the machine has multiple cpus/cores, only the characteristics of the first core are used.

Note
Uses the information from /proc/cpuinfo
Source files

Definition at line 59 of file cpuInfo.H.

Constructor & Destructor Documentation

◆ cpuInfo() [1/2]

cpuInfo ( )

Construct and populate with information.

Definition at line 37 of file cpuInfo.C.

◆ ~cpuInfo() [1/2]

~cpuInfo ( )
default

Destructor.

◆ cpuInfo() [2/2]

cpuInfo ( )

Construct and populate with information.

◆ ~cpuInfo() [2/2]

~cpuInfo ( )
default

Destructor.

Member Function Documentation

◆ write() [1/2]

void write ( Ostream os) const

Write content as dictionary entries.

Definition at line 51 of file cpuInfo.C.

References os(), Ostream::writeEntry(), and Ostream::writeEntryIfDifferent().

Here is the call graph for this function:

◆ write() [2/2]

void write ( Ostream os) const

Write content as dictionary entries.


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