Report SwapPss in dumpsys meminfo when requested and available

When requested (-a or -S options), add to the meminfo dump the
proportional swap when available to the system. The reported amount is
the PSS memory not having being accessed recently and being swapped out
of memory.

Total PSS by process:
     76,265K: system (pid 912)                                             (      290K in swap)
     67,080K: com.android.systemui (pid 3133)                              (      270K in swap)
...
Total PSS by category:
    287,803K: .dex mmap                                                    (        0K in swap)
    264,575K: Native                                                       (   25,184K in swap)
    241,077K: Dalvik                                                       (    9,391K in swap)

Bug: 26190445
Change-Id: I96415ec65b60c9f60e397d2b3acca9a6e1399aba
1 file changed