mammut::energy::Energy Class Reference
Inheritance diagram for mammut::energy::Energy:

Public Member Functions

CountergetCounter () const
 
std::vector< CounterType > getCountersTypes () const
 
CountergetCounter (CounterType type) const
 

Member Function Documentation

Counter* mammut::energy::Energy::getCounter ( ) const

Returns the most precise energy counter available on this machine, or NULL if no energy counters are available.

Returns
The most precise energy counter available on this machine, or NULL if no energy counters are available.
Counter* mammut::energy::Energy::getCounter ( CounterType  type) const

Returns a counter of a specific type if present, NULL otherwise.

Parameters
typeThe type of the counter.
Returns
A counter of the specified type if present, NULL otherwise.
std::vector<CounterType> mammut::energy::Energy::getCountersTypes ( ) const

Returns a vector of counters types available on this machine. The counters are sorted from the most precise to the least precise one. For example, if both CPUs counter and power plug counter are present, the first element of the vector will be COUNTER_CPUS and the second COUNTER_PLUG.

Returns
A vector of counters types available on this machine.

The documentation for this class was generated from the following file:
  • /home/daniele/Code/Mammut/mammut/energy/energy.hpp