diff options
| author | Hridya Valsaraju <hridya@google.com> | 2021-02-10 18:06:27 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-02-10 18:06:27 +0000 |
| commit | 8bff83e9ff2f326166bb0360e874e3353e38008c (patch) | |
| tree | e1ae7d28d10719c5e6f84e1bd35db5ec68c567d7 /core/java | |
| parent | 8ce71116107e481a642bf2c08d09ee5ad98ac70b (diff) | |
| parent | 363d44d7a04ab4ab1a5c50fc0583cd5ff971ce2a (diff) | |
Add total size of DMA-BUFs exported to 'dumpsys meminfo' am: 363d44d7a0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1564878
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I17fd9f11e20e1c1ac216cff4224298d7fd7c2a00
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/os/Debug.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index c06c2ce5f01b..5b2bef31d1ed 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -2551,6 +2551,14 @@ public final class Debug public static native long getZramFreeKb(); /** + * Return total memory size in kilobytes for exported DMA-BUFs or -1 if + * the DMA-BUF sysfs stats at /sys/kernel/dmabuf/buffers could not be read. + * + * @hide + */ + public static native long getDmabufTotalExportedKb(); + + /** * Return memory size in kilobytes allocated for ION heaps or -1 if * /sys/kernel/ion/total_heaps_kb could not be read. * |
