zenith
zenith copied to clipboard
Add Support for GPUs on MacOS
Hello there, to help you out I found a solution for this issue.
Using the sudo powermetrics command gives you a LOT of major performance measurements for the system. This includes CPU/GPU Frequencies, Usage states, and Power Draw. This was tested using an M1 mac. Hope this helps you out a bit!
Thanks, though this needs to be exposed in some sort of API. Do you happen to have a link to any doc on that?
Thanks, though this needs to be exposed in some sort of API. Do you happen to have a link to any doc on that?
From what ive seen, people generally run the application, then pipe the output to their program for light parsing. This is feasible though, as ive looked into how much processing time it takes for each refresh, and it is < 1%. You can also customize the output the output and sample time though.
Here is the man page for the process here
Here is the example of it's use that I've found utilizing python as the language for the GUI.
Thanks, though this needs to be exposed in some sort of API. Do you happen to have a link to any doc on that?
From what ive seen, people generally run the application, then pipe the output to their program for light parsing. This is feasible though, as ive looked into how much processing time it takes for each refresh, and it is < 1%. You can also customize the output the output and sample time though.
Here is the man page for the process here
Here is the example of it's use that I've found utilizing python as the language for the GUI.
Actually now that I think of it, you could make macOS builds just use this tool, and then have zenith be the GUI and the Settings controller.