ADB Shell PS Command

Source: Internet
Author: User


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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.