ADB shell PS can be used to view memory
ADB Shell PS | Find "Launcher"
USER PID PPID vsize RSS Wchan PC NAME
app_47 1274 1071 121628 30352 ffffffff afe0dc24 S com.motorola.launcher
Vsize is a virtual memory
RSS is physical memory.
Android Medium " PS "The tool provides only a display vsize and the RSS only. These numbers are not very useful to show the actual cost of a particular application or sprite in memory. Smem is the tool used to analyze memory usage. Specific reference:
Http://www.cofftech.com/thread-514-1-1.html
ADB shell Procrank can also read more information
http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/2299813#2299813
PID Vss Rss Pss Uss cmdline
481 31536K 30936K 14337K 9956K system_server
475 26128K 26128K 10046K 5992K zygote
526 25108K 25108K 9225K 5384K android.process.acore
523 22388K 22388K 7166K 3432K com.android.phone
574 21632K 21632K 6109K 2468K com.android.settings
521 20816K 20816K 6050K 2776K jp.co.omronsoft.openwnn
474 3304K 3304K 1097K 624k/system/bin/mediaserver
Terms
- VSS -Virtual Set Size Dummy memory consumption (contains memory occupied by shared library)
- RSS -resident Set Size actually uses physical memory (contains memory consumed by shared libraries)
- PSS -Proportional Set Size actual physical memory used (proportional allocation of memory consumed by shared libraries)
- USS -Unique Set Size process consumes the physical memory alone (does not contain the memory occupied by the shared library)
In general, memory footprint has the following rules: VSS >= RSS >= PSS >= USS
ADB Shell PS Command