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.