Skip to content

Question regarding per process load / energy consumption #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
step21 opened this issue Jan 30, 2025 · 2 comments
Open

Question regarding per process load / energy consumption #21

step21 opened this issue Jan 30, 2025 · 2 comments

Comments

@step21
Copy link

step21 commented Jan 30, 2025

Hey,

do you think it is possible to do usage load per process, like powermetrics is doing, either directly or by calculating oneself? Powermetrics and esp activity monitor has utilization per process, and then energy usage per process which would be even nicer. Right now I found that neither macmon or the other competitiors provide this. Ideally it would be as simple as dividing average power draw of one measurement by 100 and then multiplying by % of cpu/gpu utilization. But probably it is way more complicated? Ideally it would be awesome if it could be added to macmon, but I understand if this is of lesser concern. I also know that this data is not totally accurate, but for comparison on the same system I assume it is good enough for my use case.
What do you think?

@vladkens
Copy link
Owner

@step21 Hi. I haven't looked at where powermetrics gets the information from for each process. In general, macOS has other means to get this information: https://blog.mozilla.org/nnethercote/2015/08/26/what-does-the-os-x-activity-monitors-energy-impact-actually-measure/.

In which mode do you need this data: TUI or pipe?

@step21
Copy link
Author

step21 commented Feb 24, 2025

Hi, yeah I also found this blog post. Unfortunately, it's quite old, and the information from activity monitor is in any case not available in powermetrics from what I can tell. (and I would want to have some programmatically query-able metrics)
I would want it either in pipe or in my external lib. I was mainly trying to brainstorm if such a measurement makes sense or if I'm missing something. If you want to add it to tui, also great though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants