Dataflow Runtime API  2.7.4.0
Public Member Functions | Static Public Attributes | List of all members
imt::base::dff::runtime::RuntimeStatisticsCpu Class Reference

Holds the data for the cpu usage statistics. More...

#include <Imt.Base.Dff.Runtime/RuntimeStatisticsCpu.h>

Public Member Functions

 RuntimeStatisticsCpu (void)
 Constructor.
 
virtual ~RuntimeStatisticsCpu (void)
 Destructor.
 
void updateAverageCpuLoad (const int16_t average)
 Update the average value. More...
 
int16_t getAverageCpuLoad (void) const
 Returns the average cpu load. More...
 
int16_t getMaxCpuLoad (void) const
 Returns the maximum cpu load. More...
 
void reset (void)
 Resets the cpu statistics.
 

Static Public Attributes

static const int16_t CPU_LOAD_INVALID = -1
 Constant which represents an invalid cpu load.
 

Detailed Description

Holds the data for the cpu usage statistics.

Member Function Documentation

◆ getAverageCpuLoad()

int16_t imt::base::dff::runtime::RuntimeStatisticsCpu::getAverageCpuLoad ( void  ) 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 ( void  ) const
inline

Returns the maximum cpu load.

Returns
CPU load in percent [0..100] or CPU_LOAD_INVALID.

◆ updateAverageCpuLoad()

void imt::base::dff::runtime::RuntimeStatisticsCpu::updateAverageCpuLoad ( const int16_t  average)
inline

Update the average value.

Parameters
averageCPU load in percent [0..100] or CPU_LOAD_INVALID.

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