diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2013-07-15 14:15:53 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-07-31 01:13:35 -0700 |
commit | 929e3dcbacea209354f115e88ebffc55bc422278 (patch) | |
tree | 708750f3b215e271e161b8d6e441b1d06b488612 /libdvm/src/main | |
parent | 2993ed36295270cc6746d7bf88583ee7d9a4af4c (diff) | |
download | libcore-929e3dcbacea209354f115e88ebffc55bc422278.zip libcore-929e3dcbacea209354f115e88ebffc55bc422278.tar.gz libcore-929e3dcbacea209354f115e88ebffc55bc422278.tar.bz2 |
Show size/alloc/free per Dalvik heap space in dumpsys
Add the heap size/alloc/free stats to the Dalvik heap space breakdown section in dumpsys meminfo.
Also, now the zygote heap has a distict ashmem region name.
Bug: 9532137
Bug: 8266259
(cherry picked from commit 8a620d52b5d12599b539c7a7621daf3012de5074)
Change-Id: I7283e30cefbc6c57b23a5dc1ae88b037f3e11bbf
Diffstat (limited to 'libdvm/src/main')
-rw-r--r-- | libdvm/src/main/java/dalvik/system/VMDebug.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libdvm/src/main/java/dalvik/system/VMDebug.java b/libdvm/src/main/java/dalvik/system/VMDebug.java index a80cfcc..9966d5e 100644 --- a/libdvm/src/main/java/dalvik/system/VMDebug.java +++ b/libdvm/src/main/java/dalvik/system/VMDebug.java @@ -373,4 +373,25 @@ public final class VMDebug { * @return the number of matching instances. */ public static native long countInstancesOfClass(Class klass, boolean assignable); + + /** + * Export the heap per-space stats for dumpsys meminfo. + * + * The content of the array is: + * + * <pre> + * data[0] : the application heap space size + * data[1] : the application heap space allocated bytes + * data[2] : the application heap space free bytes + * data[3] : the zygote heap space size + * data[4] : the zygote heap space allocated size + * data[5] : the zygote heap space free size + * data[6] : the large object space size + * data[7] : the large object space allocated bytes + * data[8] : the large object space free bytes + * </pre> + * + * @param data the array into which the stats are written. + */ + public static native void getHeapSpaceStats(long[] data); } |