Hi everyone. I recently added support to query the system GPU usage in the Rust ...

@imperio@toot.cat

Hi everyone. I recently added support to query the system GPU usage in the Rust sysinfo crate. Next step was obviously to get this information per-process. However, I'm now facing a very annoying Apple issue: undocumented API which changes between each version. So I can only test for my own macOS version: 12.6.

I'd like to handle newer versions of macOS as well, but for that I need people with newer macOS. How can you help? Easy! Run ioreg -lw0 | less in your terminal and look for accumulatedGPUtime or AppUsage (or even pid, but you might have a lot more results).

I need the block containing both the pid and the accumulatedGPUtime information at once. To be noted: if only one of the two info is present, it's normal, just look for the next occurrence.

Once you have it, please answer to me with your macOS version and the block containing both info.

Thanks a lot in advance for your help!

PS: I'll likely write a blog post about this because it was incredibly awful to implement. ^^'

#rust