Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d078966 authored by Rafal Slawik's avatar Rafal Slawik
Browse files

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
parent 3c1a3a41
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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;