cpuInfo Class Reference

General CPU characteristics. More...

Public Member Functions

 cpuInfo ()
 Construct and populate with information. More...
 
void writeEntries (Ostream &os) const
 Write cpu-info as dictionary entries. More...
 
void writeEntry (const word &keyword, Ostream &os) const
 Write cpu-info as dictionary. More...
 

Detailed Description

General CPU characteristics.

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 56 of file cpuInfo.H.

Constructor & Destructor Documentation

◆ cpuInfo()

cpuInfo ( )

Construct and populate with information.

Definition at line 138 of file cpuInfo.C.

Member Function Documentation

◆ writeEntries()

void writeEntries ( Ostream os) const

Write cpu-info as dictionary entries.

Definition at line 154 of file cpuInfo.C.

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

Here is the call graph for this function:

◆ writeEntry()

void writeEntry ( const word keyword,
Ostream os 
) const

Write cpu-info as dictionary.

Definition at line 173 of file cpuInfo.C.

References Ostream::beginBlock(), Ostream::endBlock(), and os().

Here is the call graph for this function:

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