[LAU] getting cpu usage on commandline

Atte André Jensen atte.jensen at gmail.com
Tue Mar 10 07:51:09 EDT 2009


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



More information about the Linux-audio-user mailing list