Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

Example of usage CLI

Loïc Huertas edited this page Nov 3, 2015 · 5 revisions

What is the CPU energy spent by the 123 process? Please give me fresh results every 500 milliseconds

To do this (under Linux systems) with CLI, you have to type this following command at the root folder of the PowerAPI archive:

./bin/powerapi \
    modules procfs-cpu-simple \
    monitor \
      --frequency 500 \
      --pids 123 \
      --console

And this command for Windows and Mac OS X:

./bin/powerapi \
    modules sigar-cpu-simple \
    monitor \
      --frequency 500 \
      --pids 123 \
      --console