Intel Power Gadget
Purpose:: Measure power usage of software on Windows
Type:: #tool/windows
Website:: https://www.intel.com/content/www/us/en/developer/articles/tool/power-gadget.html
Source Code:: π«
Created by:: Intel
Status:: π‘
Description
Intel Power Gadget is a software-based power usage monitoring tool enabled for Intel Coreβ’ processors (from 2nd Generation up to 10th Generation Intel Coreβ’ processors). Intel Atomβ’ processors are not supported. It is supported on Windows* and macOS* and includes an application, driver, and libraries to monitor and estimate real-time processor package power information in watts using the energy counters in the processor.
Command Line
When we install the Intel Power Gadget, a command-line interface tool is also installed: the PowerLog. To run it, first, we have to locate the tool inside the Power Gadget bundle. For example, on a Mac, you will probably find it under the /Applications
directory: /Applications/Intel\ Power\ Gadget/PowerLog
.
Hence, you can simply run it like this:
/Applications/Intel\ Power\ Gadget/PowerLog -file <RESULTS_FILE> -cmd <CMD>
where <RESULTS_FILE>
is the name of the CSV file where the power data is stored and <CMD>
is the actual command you want to execute. It could be, for example, your test script. For simplicity, try running a sleep command for a few seconds:
/Applications/Intel\ Power\ Gadget/PowerLog -file results.csv -cmd sleep 2
It will generate the CSV file results.csv
that looks the exact same way as the Intel Power Gadget data above.
π References
In my opinion, this is the easiest energy profiler one can use. It provides a graphical user interface with a few plots showing CPU utilisation (%), frequency (GHz), temperature (ΒΊC), and power (W).
LuΓs Cruz β Tools to Measure Software Energy Consumption from your Computer