diff options
| author | Suren Baghdasaryan <surenb@google.com> | 2021-02-10 08:45:05 -0800 |
|---|---|---|
| committer | Suren Baghdasaryan <surenb@google.com> | 2021-02-12 01:11:39 +0000 |
| commit | c17cbb303c2da443010da868d3beb87e050aa370 (patch) | |
| tree | 43da9ce373703449f5b31d80a504392e9e70eb16 /core/java/android/os/Debug.java | |
| parent | 9379af7c563e6bbc2704f1dddcdabaa502ca8f23 (diff) | |
Extend getPssPid to report itemized memtrack values
Currently getPssPid includes memtrack HAL reported values in the pss
calculation. This makes it impossible to get these values separately.
Extend this interface to include itemized memtrack values.
Bug: 165832481
Test: dumpsys meminfo
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ieb7e1b79ad8ecae6023338d9992467952558e2bd
Diffstat (limited to 'core/java/android/os/Debug.java')
| -rw-r--r-- | core/java/android/os/Debug.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index c82149e390ba..a2cf1aee3250 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -1902,7 +1902,8 @@ public final class Debug * 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. + * another array to also retrieve the separate memtrack sizes (up to 4 values in order): the + * total memtrack reported size, memtrack graphics, memtrack gl and memtrack other. * * @return The PSS memory usage, or 0 if failed to retrieve (i.e., given pid has gone). * @hide |
