I am new for android programming.How can we get CPU usage per application in android? your help will be more helpful
Using the new Android Studio 3.0 profiler you can achieve a higher information about the CPU usage and CPU inspection of your APP.
This let's you monitor in a more top-esque manner
watch -n 0.5 adb shell top -n 1
0.5 is the polling interval
0.5