I felt confused about the difference between procrank and dumpsys meminfo when using Android adb shell.The Pss of my application, which is reported by the command-procrank, is always higher than the one displayed in the result of dumpsys meminfo.Could anyone tell me the difference between the two command-procrank and dumpsys meminfo.Thanks
Asked
Active
Viewed 1,458 times
1 Answers
2
Looking into the source of procrank and meminfo, they both take values from /proc/meminfo. The differences in memory usage may be from the difference in time between calling procrank and meminfo.
(Although this is a really old question, hopefully anyone else coming across it from a Google search will find this useful)

Angus L
- 21
- 2