Does the "powermetrics" command line tool come pre installed on mac?
Solution 1:
It is present on macOS, (my MBA is running Catalina,) but you need to run it as root using sudo
:
Last login: Wed Nov 4 07:52:42 on console
[tech-computer:~] admin% powermetrics
powermetrics must be invoked as the superuser
[tech-computer:~] admin% sudo powermetrics
Password:
Machine model: MacBookAir8,1
SMC version: Unknown
EFI version: 1037.4.0
OS version: 19H2
Boot arguments: chunklist-security-epoch=0 -chunklist-no-rev2-dev
Boot time: Wed Nov 4 07:52:07 2020
.
.
.