I am trying to find the relative memory usage of each running application and service using the dalvikPss value as suggested here
As suggested there, I need to sum up all the PSS values of running processes. My question is, how do get the pss values of all running processes ?
My understanding is that services and tasks in Android are linked to processes. Is this understanding correct ?
If so, would summing the PSS values of all processes returned from ActivityManager.getRunningAppProcesses give me the total PSS of all running processes (services and tasks included) ?
for getting PSS values of all running processes:
use this:
OR you can also get PSS value using Runtime: