Holds the data for the cpu usage statistics.
More...
#include <Imt.Base.Dff.Runtime/RuntimeStatisticsCpu.h>
Holds the data for the cpu usage statistics.
◆ RuntimeStatisticsCpu()
imt::base::dff::runtime::RuntimeStatisticsCpu::RuntimeStatisticsCpu |
( |
| ) |
|
|
inline |
◆ ~RuntimeStatisticsCpu()
virtual imt::base::dff::runtime::RuntimeStatisticsCpu::~RuntimeStatisticsCpu |
( |
| ) |
|
|
inlinevirtual |
◆ getAverageCpuLoad()
int16_t imt::base::dff::runtime::RuntimeStatisticsCpu::getAverageCpuLoad |
( |
| ) |
const |
|
inline |
Returns the average cpu load.
- Returns
- CPU load in percent [0..100] or CPU_LOAD_INVALID.
◆ getMaxCpuLoad()
int16_t imt::base::dff::runtime::RuntimeStatisticsCpu::getMaxCpuLoad |
( |
| ) |
const |
|
inline |
Returns the maximum cpu load.
- Returns
- CPU load in percent [0..100] or CPU_LOAD_INVALID.
◆ reset()
void imt::base::dff::runtime::RuntimeStatisticsCpu::reset |
( |
| ) |
|
|
inline |
Resets the cpu statistics.
◆ updateAverageCpuLoad()
void imt::base::dff::runtime::RuntimeStatisticsCpu::updateAverageCpuLoad |
( |
int16_t const |
average | ) |
|
|
inline |
Update the average value.
- Parameters
-
average | CPU load in percent [0..100] or CPU_LOAD_INVALID. |
◆ CPU_LOAD_INVALID
int16_t const imt::base::dff::runtime::RuntimeStatisticsCpu::CPU_LOAD_INVALID = -1 |
|
static |
Constant which represents an invalid cpu load.
The documentation for this class was generated from the following file: