Does the "powermetrics" command line tool come pre installed on mac? I wanted to know if &quot;powermetrics&quot; command comes pre installed on macOS or is it something that needs to be installed?
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
.
.
.