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

Example of usage Daemon

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

How can I monitor the CPU energy spent by the 123 process?

You have to configure the daemon before it launching as following (via configuration files):

powerapi.daemon.load = [
  {
    power-modules = ["procfs-cpu-simple"],
    monitors = [
      {
        all = false,
        pids = [123],
        apps = [],
        containers = [],
        frequency = 1000ms,
        agg = "SUM",
        output = "console"
      }
    ]
  }
]

After this, you can start the daemon and thus the monitoring of the 123 process, as following:

sudo ./bin/powerapid start