Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find app's CPU usage on Android

Is there an android API that provides CPU, memory usage of the running app? I would like to tune my processing in the app on the fly based on the cpu usage.

like image 603
ssk Avatar asked Jun 07 '12 00:06

ssk


People also ask

How do I see resource usage on Android?

Method 2View Memory Usage Again, you must first enable Developer Options, then open the menu from the very bottom of your Settings list or in Settings –> System –> Advanced. Once inside Developer Options, scroll down and choose "Memory." Here you will see your phone's current RAM usage.


1 Answers

This question has already been answered here. You can also get a listing using adb as follows,

adb shell top -m 10
like image 107
Alex Lockwood Avatar answered Sep 18 '22 23:09

Alex Lockwood