const std::vector<topology::Cpu*>& mammut::energy::CounterCpus::getCpus |
( |
| ) |
|
|
inline |
Returns the Cpus.
- Returns
- The Cpus.
Joules mammut::energy::CounterCpus::getJoules |
( |
| ) |
|
|
virtual |
Returns the joules consumed up to this moment.
- Returns
- The joules consumed up to this moment.
Implements mammut::energy::Counter.
virtual JoulesCpu mammut::energy::CounterCpus::getJoulesComponents |
( |
topology::CpuId |
cpuId | ) |
|
|
pure virtual |
Returns the Joules consumed by a Cpu and its components since the counter creation (or since the last call of reset()).
- Parameters
-
cpuId | The identifier of a Cpu. |
- Returns
- The Joules consumed by a Cpu and its components since the counter creation (or since the last call of reset()).
Returns the Joules consumed by a Cpu and its components since the counter creation (or since the last call of reset()).
- Parameters
-
- Returns
- The Joules consumed by a Cpu and its components since the counter creation (or since the last call of reset()).
virtual JoulesCpu mammut::energy::CounterCpus::getJoulesComponentsAll |
( |
| ) |
|
|
virtual |
Returns the Joules consumed by all the Cpus and their components since the counter creation (or since the last call of reset()).
- Returns
- The Joules consumed by all the Cpus and their components since the counter creation (or since the last call of reset()).
virtual Joules mammut::energy::CounterCpus::getJoulesCores |
( |
topology::CpuId |
cpuId | ) |
|
|
pure virtual |
Returns the Joules consumed by the cores of a Cpu since the counter creation (or since the last call of reset()).
- Parameters
-
cpuId | The identifier of a Cpu. |
- Returns
- The Joules consumed by the cores of a Cpu since the counter creation (or since the last call of reset()).
Joules mammut::energy::CounterCpus::getJoulesCores |
( |
topology::Cpu * |
cpu | ) |
|
Returns the Joules consumed by the cores of a Cpu since the counter creation (or since the last call of reset()).
- Parameters
-
- Returns
- The Joules consumed by the cores of a Cpu since the counter creation (or since the last call of reset()).
virtual Joules mammut::energy::CounterCpus::getJoulesCoresAll |
( |
| ) |
|
|
virtual |
Returns the Joules consumed by the cores of all the Cpus since the counter creation (or since the last call of reset()).
- Returns
- The Joules consumed by the cores of all the Cpus since the counter creation (or since the last call of reset()).
virtual Joules mammut::energy::CounterCpus::getJoulesCpu |
( |
topology::CpuId |
cpuId | ) |
|
|
pure virtual |
Returns the Joules consumed by a Cpu since the counter creation (or since the last call of reset()).
- Parameters
-
cpuId | The identifier of a Cpu. |
- Returns
- The Joules consumed by a Cpu since the counter creation (or since the last call of reset()).
Joules mammut::energy::CounterCpus::getJoulesCpu |
( |
topology::Cpu * |
cpu | ) |
|
Returns the Joules consumed by a Cpu since the counter creation (or since the last call of reset()).
- Parameters
-
- Returns
- The Joules consumed by a Cpu since the counter creation (or since the last call of reset()).
virtual Joules mammut::energy::CounterCpus::getJoulesCpuAll |
( |
| ) |
|
|
virtual |
Returns the Joules consumed by all the Cpus since the counter creation (or since the last call of reset()).
- Returns
- The Joules consumed by all the Cpus since the counter creation (or since the last call of reset()).
virtual Joules mammut::energy::CounterCpus::getJoulesDram |
( |
topology::CpuId |
cpuId | ) |
|
|
pure virtual |
Returns the Joules consumed by a Cpu Dram since the counter creation (or since the last call of reset()).
- Parameters
-
cpuId | The identifier of a Cpu. |
- Returns
- The Joules consumed by a Cpu Dram since the counter creation (or since the last call of reset()).
Joules mammut::energy::CounterCpus::getJoulesDram |
( |
topology::Cpu * |
cpu | ) |
|
Returns the Joules consumed by a Cpu Dram since the counter creation (or since the last call of reset()).
- Parameters
-
- Returns
- The Joules consumed by a Cpu Dram since the counter creation (or since the last call of reset()).
virtual Joules mammut::energy::CounterCpus::getJoulesDramAll |
( |
| ) |
|
|
virtual |
Returns the Joules consumed by all the Cpus Dram since the counter creation (or since the last call of reset()).
- Returns
- The Joules consumed by all the Cpus Dram since the counter creation (or since the last call of reset()).
virtual Joules mammut::energy::CounterCpus::getJoulesGraphic |
( |
topology::CpuId |
cpuId | ) |
|
|
pure virtual |
Returns the Joules consumed by a Cpu integrated graphic card (if present) since the counter creation (or since the last call of reset()).
- Parameters
-
cpuId | The identifier of a Cpu. |
- Returns
- The Joules consumed by a Cpu integrated graphic card (if present) since the counter creation (or since the last call of reset()).
Joules mammut::energy::CounterCpus::getJoulesGraphic |
( |
topology::Cpu * |
cpu | ) |
|
Returns the Joules consumed by a Cpu integrated graphic card (if present) since the counter creation (or since the last call of reset()).
- Parameters
-
- Returns
- The Joules consumed by a Cpu integrated graphic card (if present) since the counter creation (or since the last call of reset()).
virtual Joules mammut::energy::CounterCpus::getJoulesGraphicAll |
( |
| ) |
|
|
virtual |
Returns the Joules consumed by all the Cpus integrated graphic card (if present) since the counter creation (or since the last call of reset()).
- Returns
- The Joules consumed by all the Cpus integrated graphic card (if present) since the counter creation (or since the last call of reset()).
CounterType mammut::energy::CounterCpus::getType |
( |
| ) |
|
|
inlinevirtual |
virtual bool mammut::energy::CounterCpus::hasJoulesDram |
( |
| ) |
|
|
pure virtual |
Returns true if the counter for DRAM is present, false otherwise.
- Returns
- True if the counter for DRAM is present, false otherwise.
virtual bool mammut::energy::CounterCpus::hasJoulesGraphic |
( |
| ) |
|
|
pure virtual |
Returns true if the counter for integrated graphic card is present, false otherwise.
- Returns
- True if the counter for integrated graphic card is present, false otherwise.
virtual bool mammut::energy::CounterCpus::init |
( |
| ) |
|
|
pure virtual |
Initializes the counter.
- Returns
- True if the counter is present, false otherwise.
Implements mammut::energy::Counter.
virtual void mammut::energy::CounterCpus::reset |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file:
- /home/daniele/Code/Mammut/mammut/energy/energy.hpp