PowerMeter

Constructor

PowerMeter([project_name, program_name, …])

PowerMeter is a general tool to monitor and log the power consumption of any given function.

IO / conversion

PowerMeter.from_config(path)

Create a PowerMeter from a json config file.

Measures

PowerMeter.measure_power(package, algorithm)

A decorator to measure the power consumption of a given function

PowerMeter.__call__(package, algorithm[, …])

Measure the power usage using a with statement.

PowerMeter.start_measure(package, algorithm)

Starts mesuring the power consumption of a given sample of code

PowerMeter.stop_measure()

Stops the measure started with PowerMeter.start_measure()