What's the equivalent of top -H -p <pid> on OS X? </pid>

595
raulk

I need to monitor the CPU usage of threads created by a given process.

In *nix one can use top -H -p <pid>, but that not available in OS X.

An equivalent of ps -eLo pid,ppid,lwp,nlwp,osz,rss,ruser,pcpu,stime,etime,args would also suffice.

0

1 ответ на вопрос

0
D Schlachter

Tree view in htop is similar (see picture). You can install htop with Homebrew, then toggle tree view with F5. To keep a process and its threads from jumping around on updates, you can select the parent process and use F to keep it in place.

htop