powerapi-ng / pyJoules

A Python library to capture the energy consumption of code snippets
MIT License
69 stars 8 forks source link

How to specify cgroup/process to monitor? #30

Closed Urhengulas closed 11 months ago

Urhengulas commented 11 months ago

I am trying to monitor a single process, which should be possible according to the "Getting Started" docs.

Smartwatts is made for tracking the energy consumption of processes on a machine. [...] If you need to monitor a process or a group of process via SmartWatts, please follow this tutorial.

I followed the tutorial, enabled cgroup v1 and created a cgroup for my process. How can I pass the cgroup to the Smartwatts formula or the HWPC sensor? I do not find the CLI argument to do that.

Thank you for your tool!

Urhengulas commented 11 months ago

Accidentally opened the issue here, while it was meant to be in https://github.com/powerapi-ng/powerapi/. Opened it there: https://github.com/powerapi-ng/powerapi/issues/201