Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Monitor one task's CPU usage via top' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Monitor one task's CPU usage via top
Authored by: loren_ryter on Sep 23, '09 03:54:23PM
I'm no expert here, but based on this hint I experimented in Snow Leopard, where top output seems to be formatted differently.

This is what works for me in case it is of use to anyone:

top -F -l2 | grep '^..[1234567890-]' | grep -v -e ' 0.0 ..:' -e '/../' -e ' top ' -e ' grep ' | cut -c 1-29,76-82,90-96,198-206

[ Reply to This | # ]