You really don't want to give unprivileged code access to this data (check out the man page to see all of the information it can give you).
If you want to understand a lot of what this stuff means on Apple Silicon, you should (oddly) check out the Intel x86 documentation: https://www.intel.com/content/www/us/en/developer/articles/t...
How do Activity Monitor and AlDente get detailed power data? They don't prompt me to elevate privileges.
tyvm for the docs links! I still don't have any specifics in mind for useful attacks one could carry out using the data mentioned in `man powermetrics`. I assume the worry is that this stuff could play a role in some kinds of side-channel attacks but idrk much about low-level OS stuff. :-\
(it's been a while since I've messed with this stuff, I could be missing some details)