mammut::energy::CounterCpus Class Referenceabstract
Inheritance diagram for mammut::energy::CounterCpus:
mammut::energy::Counter

Public Member Functions

const std::vector
< topology::Cpu * > & 
getCpus ()
 
virtual JoulesCpu getJoulesComponents (topology::CpuId cpuId)=0
 
JoulesCpu getJoulesComponents (topology::Cpu *cpu)
 
virtual JoulesCpu getJoulesComponentsAll ()
 
virtual Joules getJoulesCpu (topology::CpuId cpuId)=0
 
Joules getJoulesCpu (topology::Cpu *cpu)
 
virtual Joules getJoulesCpuAll ()
 
virtual Joules getJoulesCores (topology::CpuId cpuId)=0
 
Joules getJoulesCores (topology::Cpu *cpu)
 
virtual Joules getJoulesCoresAll ()
 
virtual bool hasJoulesGraphic ()=0
 
virtual Joules getJoulesGraphic (topology::CpuId cpuId)=0
 
Joules getJoulesGraphic (topology::Cpu *cpu)
 
virtual Joules getJoulesGraphicAll ()
 
virtual bool hasJoulesDram ()=0
 
virtual Joules getJoulesDram (topology::CpuId cpuId)=0
 
Joules getJoulesDram (topology::Cpu *cpu)
 
virtual Joules getJoulesDramAll ()
 
Joules getJoules ()
 
virtual void reset ()=0
 
virtual bool init ()=0
 
CounterType getType ()
 

Protected Member Functions

 CounterCpus (topology::Topology *topology)
 

Protected Attributes

topology::Topology_topology
 
std::vector< topology::Cpu * > _cpus
 

Member Function Documentation

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
cpuIdThe 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()).
JoulesCpu mammut::energy::CounterCpus::getJoulesComponents ( topology::Cpu cpu)

Returns the Joules consumed by a Cpu and its components since the counter creation (or since the last call of reset()).

Parameters
cpuThe Cpu.
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
cpuIdThe 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
cpuThe Cpu.
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
cpuIdThe 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
cpuThe Cpu.
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
cpuIdThe 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
cpuThe Cpu.
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
cpuIdThe 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
cpuThe Cpu.
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

Returns the type of this counter.

Returns
The type of this counter.

Implements mammut::energy::Counter.

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

Resets the value of the counter.

Implements mammut::energy::Counter.


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