I want to find CPU usage of my own c application. I have already use ps -p pid -o %cpu,%mem,cmd It works fine in my Ubuntu 10.04 desktop. But not work in ARM architecture.
It shows following error.
ps: invalid option -- 'p'
BusyBox v1.13.2 (2011-03-24 18:58:44 CDT) multi-call binary
Usage: ps
Report process status
Options: w Wide output
So I need c code for finding cpu usage.