The software multi-meters. More...
#include <MeterPU.h>
Public Member Functions | |
Meter () | |
void | start () |
start a measurement More... | |
void | stop () |
stop a measurement More... | |
void | calc () |
calculate measurement value More... | |
Meter_Traits< Type > ::ResultType const & | get_value () const |
Get calculated metric value, require calc() to be called already. More... | |
void | show_meter_reading () |
Write measurement value on standard output with its unit. More... | |
Private Attributes | |
Meter_Traits< Type > ::Environment_Init_Type | environment_init_object |
Native library initializer. More... | |
Meter_Traits< Type > ::Measurement_Controller | measurement_controller_object |
Measurement controller. More... | |
Meter_Traits< Type >::ResultType | meter_reading |
The variable used to store the calculated. More... | |
The software multi-meters.
The only class the user program should use. When equipped with different template parameter, it can measure different metrics on code regions. So far supported metrics are
|
inline |
|
inline |
calculate measurement value
|
inline |
Get calculated metric value, require calc() to be called already.
|
inline |
Write measurement value on standard output with its unit.
|
inline |
start a measurement
|
inline |
stop a measurement
|
private |
Native library initializer.
For GPU, initialize NVML library.
|
private |
Measurement controller.
The object that do the measurement, Meter class pass control signal such as start and stop to it.
|
private |
The variable used to store the calculated.