Android procrank view memory usage

Source: Internet
Author: User

Android procrank view memory usage

Use adb shell procrank
THE sh in the mobile phone is streamlined. Some mobile phones may not have the procrank command. You can use the genymotion simulator or install the procrank command yourself. When procrank is used, the command line output is as follows:

We can see that in linux, there are four different manifestations of memory consumption:
VSS-Virtual Set Size Virtual memory consumption (including memory occupied by shared libraries)
RSS-Resident Set Size actually uses physical memory (including memory occupied by shared libraries)
PSS-Proportional Set Size physical memory actually used (Proportional allocation of memory occupied by the Shared Library)
USS-Unique Set Size physical memory occupied by the process (excluding the memory occupied by the Shared Library)


For the Camera process:

VSS is usually not followed

RSS: The physical memory occupied by the Camera process plus all (other processes, such as the Settings process...) memory occupied by the shared library

PSS: The physical memory occupied by the Camera process and the memory occupied by the shared library of the Camera process.

USS: physical memory actually occupied by the Camera process

 

Generally, the memory usage is as follows: VSS> = RSS> = PSS> = USS

 

It is objective to view the memory usage of a process in statistics.

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.