Energy impact from terminal

Solution 1:

Top will do it. However, this is not documented in the man page.

Example:

top -stats pid,command,power -o power -l 0

And of course you can grep the process of your choice


You can also use the powermetrics command to get some general info.

See documentation via man or here

A nice example can be found here

powermetrics -i 1000 --poweravg 1 | grep 'Average cumulatively decayed power score' -A 20