summaryrefslogtreecommitdiffstats
path: root/core/java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2014-12-08 17:43:31 -0800
committerDianne Hackborn <hackbod@google.com>2014-12-08 17:43:31 -0800
commit1a4b5a4f02e7d8ff8ff645377d97e6062d36aeaa (patch)
treea2f634c4a715f29839b9713801e5af5966388c0c /core/java
parent52fec4707ddfd7e2b2e8f7459635d4d48fe9b30a (diff)
downloadframeworks_base-1a4b5a4f02e7d8ff8ff645377d97e6062d36aeaa.zip
frameworks_base-1a4b5a4f02e7d8ff8ff645377d97e6062d36aeaa.tar.gz
frameworks_base-1a4b5a4f02e7d8ff8ff645377d97e6062d36aeaa.tar.bz2
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
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/os/Debug.java5
1 files changed, 3 insertions, 2 deletions
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;