libcommonc++  0.7
LoadAverageStats Class Reference

System "load average" statistics. More...

#include <LoadAverageStats.h++>

Inheritance diagram for LoadAverageStats:
Collaboration diagram for LoadAverageStats:

Public Member Functions

 LoadAverageStats ()
 Construct a new LoadAverageStats object. More...
 
 ~LoadAverageStats ()
 Destructor. More...
 
double getLoad1Min () const
 Get the load average over the last 1 minute period. More...
 
double getLoad5Min () const
 Get the load average over the last 5 minute period. More...
 
double getLoad15Min () const
 Get the load average over the last 15 minute period. More...
 
bool collect ()
 Collect (update) the stats represented by this object. More...
 
void reset ()
 Reset the stats object. More...
 

Detailed Description

System "load average" statistics.

These statistics represent the average system load over a period of time. These statistics are not available on Windows.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ LoadAverageStats()

Construct a new LoadAverageStats object.

◆ ~LoadAverageStats()

Destructor.

Member Function Documentation

◆ collect()

bool collect ( )
virtual

Collect (update) the stats represented by this object.

Returns
true if the stats were collected successfully, false otherwise.

Implements SystemStats.

◆ getLoad15Min()

double getLoad15Min ( ) const
inline

Get the load average over the last 15 minute period.

◆ getLoad1Min()

double getLoad1Min ( ) const
inline

Get the load average over the last 1 minute period.

◆ getLoad5Min()

double getLoad5Min ( ) const
inline

Get the load average over the last 5 minute period.

◆ reset()

void reset ( )
virtual

Reset the stats object.

Implements SystemStats.


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