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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store