interface for cpu implementation
More...
#include <Os/Interfaces/CpuInterface.hpp>
interface for cpu implementation
Definition at line 13 of file CpuInterface.hpp.
◆ CpuInterface() [1/2]
| Os::CpuInterface::CpuInterface |
( |
| ) |
|
|
default |
◆ ~CpuInterface()
| virtual Os::CpuInterface::~CpuInterface |
( |
| ) |
|
|
virtualdefault |
◆ CpuInterface() [2/2]
| Os::CpuInterface::CpuInterface |
( |
const CpuInterface & |
other | ) |
|
|
delete |
copy constructor is forbidden
◆ _getCount()
◆ _getTicks()
Get the CPU tick information for a given CPU.
CPU ticks represent a small time slice of processor time. This will retrieve the used CPU ticks and total ticks for a given CPU. This information in a running accumulation and thus a sample-to-sample differencing is needed to see the 'realtime' changing load. This shall be done by the caller.
- Parameters
-
| ticks | (output) filled with the tick information for the given CPU |
| cpu_index | index for CPU to read. Default: 0 |
- Returns
- : ERROR when error occurs, OK otherwise.
Implemented in Os::Linux::Cpu::LinuxCpu, Os::Stub::Cpu::StubCpu, and Os::Darwin::Cpu::DarwinCpu.
◆ getHandle()
| virtual CpuHandle* Os::CpuInterface::getHandle |
( |
| ) |
|
|
pure virtual |
◆ operator=()
The documentation for this class was generated from the following file: