Intel Power Gadget

Discontinued

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.

API

Using the Intelยฎ Power Gadget 3.0 API on Windows*

๐Ÿ”— 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

GitHub - schaDev/GreenCoding-showcase: GreenCoding