开发者

how to get the heap size value?

开发者 https://www.devze.com 2023-02-25 03:44 出处:网络
How can I get the heap memory sizes of different processes running on e开发者_如何转开发mulator (or device) to my application (Activity) in Android?Open a command prompt, type

How can I get the heap memory sizes of different processes running on e开发者_如何转开发mulator (or device) to my application (Activity) in Android?


Open a command prompt, type

adb shell dumpsys meminfo

or for jusr one process, either

adb shell dumpsys meminfo xxx

where xxx is the PID

or

adb shell dumpsys meminfo 'your apps package name'
0

精彩评论

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