1. View the memory usage of the process
adb shell Dumpsys meminfo <packagename>
Cases:
my-mac:~xiaoyu$ adb shell dumpsys meminfo com.muzhiwan.marketApplications Memory Usage (KB): Uptime:6918199Realtime:7614790* * MeminfoinchPid20390[Com.muzhiwan.market] * *Shared Private Heap heap Pss Dirty Dirty Size Alloc Free------ ------ ------ ------ ------ ------Native - - - 2736 2374 361Dalvik1110 8520 856 10056 8683 1373Cursor0 0 0Ashmem0 0 0Other Dev4 + 0. So mmap123 840 the. Jar Mmap0 0 0. apk mmap9 0 0. TTF Mmap0 0 0. Dex Mmap2 0 0Other mmap237 348 theUnknown1384 796 1332 Total2917 10556 2388 12792 11057 1734Objects Views:0Viewrootimpl:0appcontexts:4Activities:0Assets:3Assetmanagers:3Local Binders:2Proxy Binders:9Death Recipients:0OpenSSL Sockets:0SQL memory_used:0Pagecache_overflow:0Malloc_size:0Asset Allocations Zip:/data/app/com.muzhiwan.market-1. apk:/resources.arsc:449k
2.
3.
4.
5.
Android Common Debug commands