开发者

Android - How to track the memory usage of an any running app on device programmatically?

开发者 https://www.devze.com 2023-03-04 21:29 出处:网络
How to check that how much memory(RAM) is getting consumed by any of currently runnin开发者_Python百科g app on device?

How to check that how much memory(RAM) is getting consumed by any of currently runnin开发者_Python百科g app on device?

Thanks.


Look at the ActivityManager.

getRunningAppProcesses will get you a list of PIDs, and then getProcessMemoryInfo will give you memory details about them.

See the following thread for an complete, in-depth answer: How do I discover memory usage of my application in Android?.

0

精彩评论

暂无评论...
验证码 换一张
取 消