[LAU] getting cpu usage on commandline

From: Atte André Jensen <atte.jensen@email-addr-hidden>
Date: Tue Mar 10 2009 - 13:51:09 EET

Hi

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?

-- 
Atte
http://atte.dk    http://modlys.dk
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Tue Mar 10 16:15:01 2009

This archive was generated by hypermail 2.1.8 : Tue Mar 10 2009 - 16:15:01 EET