Private Dirty:私有的臟內存頁(還在使用中)的大小;
Private Clean:私有的干凈內存頁(現在未使用了)的大小;
以上這二者相加,便是應用曾經申請過的內存空間大小。Private Clean仍屬於該應用,在后面需要時仍可以使用
Private Dirty,它基本上是進程內不能被分頁到磁盤的內存,也不和其他進程共享。
手機中系統設置里有可以查看正在運行的應用程序所占的內存,此處顯示的內存為該進程所占用的Pss Total。所以我們只需要查看Total Pss的值就可以知道該應用運行時所占的內存的大小。
Swapped Dirty或SwapPss Dirty: Some Android devices do use swap, but they swap to RAM rather than flash. Linux has a feature called ZRAM that compressed pages and then swaps them to a special RAM area, and decompresses them again when needed.
So the pages listed in "Swapped Dirty" are likely in ZRAM.