summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorKalesh Singh <kaleshsingh@google.com>2021-02-12 14:27:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-02-12 14:27:58 +0000
commit214b3147cfa69693e4cd80298aad3774cf0e9031 (patch)
treeb9dd114fbcf365ee8afabfd4f099b4b25cf725c2 /core/java/android
parent68da8f75c55453ddd11c9bc35ae648ff7057ab3a (diff)
parent9785b9a84bf445dee43d4f566f6dcd274e5cb09b (diff)
Merge changes I631488d9,Ie72f46c8 into sc-dev
* changes: Eliminate memtrack variability from the lost RAM calculation Provide an interface to query dmabuf GPU allocations
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/os/Debug.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java
index 77297efa86af..eac03dc5d07e 100644
--- a/core/java/android/os/Debug.java
+++ b/core/java/android/os/Debug.java
@@ -2590,6 +2590,13 @@ public final class Debug
public static native long getIonPoolsSizeKb();
/**
+ * Return GPU DMA buffer usage in kB or -1 on error.
+ *
+ * @hide
+ */
+ public static native long getGpuDmaBufUsageKb();
+
+ /**
* Return DMA-BUF memory mapped by processes in kB.
* Notes:
* * Warning: Might impact performance as it reads /proc/<pid>/maps files for each process.