0

I need to calculate the cpu usage of a perticular process in android device. I have tried to find it out using top command. Problem is that it is completely different from the android assistant which is showing cpu usage in RTCPU percentange. I dont know what is RTCPU. Can anyone explain me ?

I also want to know that CPU usage I have found using top command is correct or not...

Bharat Sharma
  • 3,926
  • 2
  • 17
  • 29
  • Not sure it will help, but take a look on this question: http://stackoverflow.com/questions/2467579/how-to-get-cpu-usage-statistics-on-android – MByD Apr 16 '12 at 09:22
  • "proc/stat" i have tried but it is giving total cpu usage not cpu usage for a perticular process. I have used top but dont know that cpu usage I have found is correct or not. Thanks for your valuable help.. I will try other things too written in link that you have forwarded me.. – Bharat Sharma Apr 16 '12 at 11:32

1 Answers1

1

I also used top to get the CPU usage of my application. You need to know the PID of the application, but after that you can query it from the results of Top. See my answer here.

Retrieve CPU with Top

Community
  • 1
  • 1
Brian S
  • 3,096
  • 37
  • 55