From 4d078966eff856c24f1c5eb1e2089a34acfe5bfb Mon Sep 17 00:00:00 2001 From: Rafal Slawik Date: Mon, 20 Aug 2018 18:23:49 +0100 Subject: Update documentation that RSS can be obtained as the third value in the array Test: Code compiles, only Javadoc and parameter name change Change-Id: I15cc7bb66ff9377c3994fcf684219edfbbb4596b --- core/java/android/os/Debug.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index e6069644caa5..6ddcbe0b3b64 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -1752,13 +1752,13 @@ public final class Debug public static native long getPss(); /** - * Retrieves the PSS memory used by the process as given by the - * smaps. Optionally supply a long array of 2 entries to also - * receive the Uss and SwapPss of the process, and another array to also - * retrieve the separate memtrack size. + * Retrieves the PSS memory used by the process as given by the smaps. Optionally supply a long + * array of up to 3 entries to also receive (up to 3 values in order): the Uss and SwapPss and + * Rss (only filled in as of {@link android.os.Build.VERSION_CODES#P}) of the process, and + * another array to also retrieve the separate memtrack size. * @hide */ - public static native long getPss(int pid, long[] outUssSwapPss, long[] outMemtrack); + public static native long getPss(int pid, long[] outUssSwapPssRss, long[] outMemtrack); /** @hide */ public static final int MEMINFO_TOTAL = 0; -- cgit v1.2.3-59-g8ed1b