powermetrics
SafePower & performance metrics
sudo powermetrics --samplers tasks -n 1
Measures power draw and per-process energy — hunt battery drainers and heat sources precisely.
Examples
sudo powermetrics --samplers smc -n 1Temps and fan state
Syntax
sudo powermetrics [--samplers tasks|smc] [-n count]
Before you run it
Measurement only (needs sudo).
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store