2

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?

1

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.

  • I've read that before. As I said I know there is top - and it's absolutely not enough. This gives you current power usage but doesn't say if it's because of high perf gpu request or not. I would doubt also in accuracy as thread requiring high perf gpu is often not at the top yet battery drains much faster. But maybe it's because you get a snapshot of current energy usage every second - if somehow this could be accumulated per second or better per minute - then maybe it would push problematic pid at the top of the list. Activity Monitor has a variable saying if thread requires high gpu or not. – Kamil Dziedzic Apr 24 at 16:48
  • Or in short, activity monitor has plenty more data than top or htop. – Kamil Dziedzic Apr 24 at 16:48
  • No, activity monitor has same data as top or htop but it creates combinations of some of the info into new catagories. Not new data but just a combination ofinfo. – jmh Apr 24 at 17:03
  • Well, then how to get "high perf gpu" column in top? Or "App Nap" or "Preventing sleep"? – Kamil Dziedzic Apr 24 at 17:22
  • How is the high perf gpu column defined. It has no units. What does it even mean? It was determined using the info obtained from some unix command. Probably top. Using an unknown equation tocombine certain columns of a top output. When they didn't give an expression or definintion for a value its hard totell. – jmh Apr 24 at 17:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .