diff options
| author | Rafal Slawik <rslawik@google.com> | 2018-08-20 18:23:49 +0100 |
|---|---|---|
| committer | Rafal Slawik <rslawik@google.com> | 2018-08-20 19:49:49 +0100 |
| commit | 4d078966eff856c24f1c5eb1e2089a34acfe5bfb (patch) | |
| tree | 999679c51a97551ed69fa5b34893004538daf9b3 /core/java/android/os/Debug.java | |
| parent | 3c1a3a41b7425da90ef74d84b43d4660dedf9b62 (diff) | |
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
Diffstat (limited to 'core/java/android/os/Debug.java')
| -rw-r--r-- | core/java/android/os/Debug.java | 10 |
1 files 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; |
