From 1a4b5a4f02e7d8ff8ff645377d97e6062d36aeaa Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Mon, 8 Dec 2014 17:43:31 -0800 Subject: Work on issue #18640385: Add procstats test mode You can now do "adb shell dumpsys procstats --start-testing" to enable high frequency pss sampling. Also improved the low on RAM mem reporting to separate out RAM from memtrack, in case the data we are getting from that is bad. And fixed meminfo --oom to work correctly again. Change-Id: I7af17eab110a82298bd7b0ce381f8fa5c96c1f6a --- core/java/android/os/Debug.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/java') diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index 3f42d25..a241c3a 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -1071,9 +1071,10 @@ href="{@docRoot}guide/developing/tools/traceview.html">Traceview: A Graphical Lo /** * Retrieves the PSS memory used by the process as given by the * smaps. Optionally supply a long array of 1 entry to also - * receive the uss of the process. @hide + * receive the uss of the process, and another array to also + * retrieve the separate memtrack size. @hide */ - public static native long getPss(int pid, long[] outUss); + public static native long getPss(int pid, long[] outUss, long[] outMemtrack); /** @hide */ public static final int MEMINFO_TOTAL = 0; -- cgit v1.1