zenith icon indicating copy to clipboard operation
zenith copied to clipboard

Add Support for GPUs on MacOS

Open bvaisvil opened this issue 5 years ago • 5 comments

bvaisvil avatar May 01 '20 04:05 bvaisvil

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!

IComplainInComments avatar Oct 09 '23 16:10 IComplainInComments

Thanks, though this needs to be exposed in some sort of API. Do you happen to have a link to any doc on that?

bvaisvil avatar Oct 09 '23 18:10 bvaisvil

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.

IComplainInComments avatar Oct 09 '23 19:10 IComplainInComments

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.

IComplainInComments avatar Oct 09 '23 20:10 IComplainInComments