In Linux, I can confirm the CPU rate of use of the thread level by a top -H -b command, but do not seem to support a -H -b option by the top command of Mac OSX.

How to examine the ID of a thread using a lot of CPU's for Mac OSX?

link|improve this question

39% accept rate
feedback

1 Answer

up vote 0 down vote accepted

ps -aux at the command line will quickly get you the resource information fro all threads running. you could pipe it into a grep command for specifics.

ps -aux |grep myPID

link|improve this answer
Thank you for answering , but I want to sort cpu rate like a top command – freddiefujiwra Oct 19 '09 at 0:31
Ah ok - can you run top interactively, or does it have to be in batch mode? ie within top, type o and set the key to be cpu? – Ben Short Oct 19 '09 at 0:49
Tanks a lot "top -o cpu " is OK! Are there Another answers? – freddiefujiwra Oct 19 '09 at 1:26
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.