I need to get the total cpu time of a process in android. I am trying to use adb shell top commands, but it gives only cpu usage in terms of percentage.
But I need the total cpu time of the process. I can get this info in my Ubuntu, but I could not find a way to get the TIME+ column in android.
Any suggestions?
I’m not sure if this would work on a non-rooted device, but:
This would print the sum of the user mode jiffies and kernel mode jiffies used by the process. Replace com.android.phone with the name of the process you’re interested in.