On Tue, Mar 10, 2009 at 11:51 AM, Atte André Jensen
<atte.jensen(a)gmail.com> wrote:
I'm doing some benchmarking and would like to know
the cpu usage of
certain realtime processes. ATM I use htop, but I'd like to make an
automatic test script, and it seems htop cannot be made to output to
stdout and exit. Also "ps aux" seems to be reports wrong cpu usages for
realtime processes.
Which command can I call (from a bash script) to get the actual cpu
usage of a realtime process?
NMon from IBM and it's free (as a beer).It's
originally written for
AIX but it is still one of the best tools I've ever seen. It can also
collect data in the background as a detached job and they also have a
nice "analyzer spreadsheet" if you want pretty graphics (I haven't
tested that on OpenOffice but might work). I mainly use that at work
for performance and machine analysis.
--
Hakan (m1fcj) -
http://www.hititgunesi.org