MacOS – ny command line alternative to Activity Monitor that would yield the same results

activity-monitormacos

I know there's top and htop commands, but they lack a lot of information. For example there is no way to list processes from Energy tab. Or is there at least some kind of API for Activity Monitor which could be used to develop the desired command line tool?

Best Answer

A good reference giving insight on the energy tab is given here. It relates it to the Power column of the top command which you can generate by using top command as such: top -stats pid,command,cpu,idlew,power -o power -d The power column is not usually displayed due to width of monitor.