AverageWatts is a formula for a software-defined power meter based on the PowerAPI framework.
This project is the implementation of a simple power meter that estimate the power consumption following this method :
n is the total number of active processus.
Formula can be launched by running the following command:
PYTHONPATH=src python -m averagewatts \
--input <Input> \
--output <Output>Input / Output are the one available from PowerAPI framework.
For example, using csv as a source and csv as a destination:
PYTHONPATH=src python -m averagewatts \
--input csv --model HWPCReport --name puller_csv --files "./tests/integration/data/rapl.csv,./tests/integration/data/msr.csv,./tests/integration/data/core.csv" \
--output csv --directory "../power_reports.d"