The Pedigree Project 0.1
Public Member Functions | Static Public Attributes | Static Private Member Functions | Private Attributes | List of all members
LoadAverage Class Reference

#include <LoadAverage.h>

+ Collaboration diagram for LoadAverage:

Public Member Functions

void update (uint64_t now, uint32_t active)
 
void snapshot (uint64_t values[3]) const
 

Static Public Attributes

static constexpr uint64_t PeriodNanoseconds = 5000000000ULL
 
static constexpr uint64_t Scale = 65536
 

Static Private Member Functions

static uint64_t power (uint64_t base, uint64_t exponent)
 

Private Attributes

uint64_t m_LastSample = 0
 
uint64_t m_Values [3] = {}
 

Detailed Description

The scheduler owns serialization and samples runnable non-idle tasks.

Definition at line 8 of file LoadAverage.h.

Member Function Documentation

◆ power()

static uint64_t LoadAverage::power ( uint64_t  base,
uint64_t  exponent 
)
inlinestaticprivate

Definition at line 34 of file LoadAverage.h.

◆ snapshot()

void LoadAverage::snapshot ( uint64_t  values[3]) const
inline

Definition at line 28 of file LoadAverage.h.

◆ update()

void LoadAverage::update ( uint64_t  now,
uint32_t  active 
)
inline

Definition at line 13 of file LoadAverage.h.

Member Data Documentation

◆ m_LastSample

uint64_t LoadAverage::m_LastSample = 0
private

Definition at line 46 of file LoadAverage.h.

◆ m_Values

uint64_t LoadAverage::m_Values[3] = {}
private

Definition at line 47 of file LoadAverage.h.

◆ PeriodNanoseconds

constexpr uint64_t LoadAverage::PeriodNanoseconds = 5000000000ULL
staticconstexpr

Definition at line 10 of file LoadAverage.h.

◆ Scale

constexpr uint64_t LoadAverage::Scale = 65536
staticconstexpr

Definition at line 11 of file LoadAverage.h.


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