I am trying to calculate the memory used by a single process in android, for that i am stuck at this point.
ActivityManager am=(ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
android.os.Debug.MemoryInfo[] mem=am.getProcessMemoryInfo(ProcessId);
From the above "MemoryInfo" what should i consider?
{mem.getTotalPss() or mem.getTotalPrivateDirty() or mem.getTotalSharedDirty()}
to get the amount of RAM used by the process.
Please help me with this. Thanks in advance.