Re: [LAU] getting cpu usage on commandline

From: Hakan Koseoglu <hakan.koseoglu@email-addr-hidden>
Date: Wed Mar 25 2009 - 20:53:57 EET

On Tue, Mar 10, 2009 at 11:51 AM, Atte André Jensen
<atte.jensen@email-addr-hidden> 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
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Thu Mar 26 00:15:03 2009

This archive was generated by hypermail 2.1.8 : Thu Mar 26 2009 - 00:15:03 EET