Dataflow Runtime API  3.1.1.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. More...
 
virtual ~RuntimeStatisticsCpu (void)
 Destructor. More...
 
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. More...
 

Static Public Attributes

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

Detailed Description

Holds the data for the cpu usage statistics.

Constructor & Destructor Documentation

◆ RuntimeStatisticsCpu()

imt::base::dff::runtime::RuntimeStatisticsCpu::RuntimeStatisticsCpu ( void  )
inline

Constructor.

◆ ~RuntimeStatisticsCpu()

virtual imt::base::dff::runtime::RuntimeStatisticsCpu::~RuntimeStatisticsCpu ( void  )
inlinevirtual

Destructor.

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.

◆ reset()

void imt::base::dff::runtime::RuntimeStatisticsCpu::reset ( void  )
inline

Resets the cpu statistics.

◆ 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.

Member Data Documentation

◆ CPU_LOAD_INVALID

const int16_t 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: