System Energy Measurement Controller. More...
#include <MeterPU.h>
Public Member Functions | |
System_Energy_Measurement_Controller () | |
~System_Energy_Measurement_Controller () | |
void | init () |
void | start () |
mark the start of a measurement phase/period. More... | |
void | stop () |
mark the end of a measurement phase/period. More... | |
void | calc () |
calculate the metric value between start() and stop(). More... | |
System_Energy::ResultType const & | get_value () const |
Get calculated metric value, require calc() to be called already. More... | |
void | show_meter_reading () const |
Print the calculated metric value to standard output, requires an invocation of calc() already done. More... | |
Private Types | |
enum | { N =sizeof...(gpu_device_ids) } |
Private Attributes | |
Meter< PCM_Energy > | cpu_meter |
void * | gpu_meters [N] |
NVML_Energy::ResultType | meter_reading |
System Energy Measurement Controller.
It initialize a Energy Meter of CPU and DRAM, together with a specified combination of GPU Energy Meters, thus it can measure energy consumption of those hardware components together.
|
inline |
|
inline |
|
inlinevirtual |
calculate the metric value between start() and stop().
Implements MeterPU::Measurement_Controller.
|
inline |
Get calculated metric value, require calc() to be called already.
|
inline |
|
inlinevirtual |
Print the calculated metric value to standard output, requires an invocation of calc() already done.
Implements MeterPU::Measurement_Controller.
|
inlinevirtual |
mark the start of a measurement phase/period.
Implements MeterPU::Measurement_Controller.
|
inlinevirtual |
mark the end of a measurement phase/period.
Implements MeterPU::Measurement_Controller.
|
private |
|
private |
|
private |