diff options
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/os/Debug.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/core/java/android/os/Debug.java b/core/java/android/os/Debug.java index bf26a41c536a..422761c4dca5 100644 --- a/core/java/android/os/Debug.java +++ b/core/java/android/os/Debug.java @@ -2503,4 +2503,27 @@ public final class Debug * @hide */ public static native long getZramFreeKb(); + + /** + * Return memory size in kilobytes allocated for ION heaps. + * + * @hide + */ + public static native long getIonHeapsSizeKb(); + + /** + * Return memory size in kilobytes allocated for ION pools. + * + * @hide + */ + public static native long getIonPoolsSizeKb(); + + /** + * Return ION memory mapped by processes in kB. + * Notes: + * * Warning: Might impact performance as it reads /proc/<pid>/maps files for each process. + * + * @hide + */ + public static native long getIonMappedSizeKb(); } |
