Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between procrank and dumpsys meminfo?

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

like image 469
storkzhang Avatar asked Jan 29 '26 16:01

storkzhang


1 Answers

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)

like image 135
Angus L Avatar answered Feb 01 '26 10:02

Angus L



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!