summaryrefslogtreecommitdiff
path: root/core/java/android/os/Debug.java
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-04-11 16:29:18 -0700
committerChristopher Ferris <cferris@google.com>2017-07-12 16:06:20 -0700
commit8d652f8f7e48370b92314bbd547ddf2d66a1ed4b (patch)
treedc95338aae7e05056db93d14389696f5b606c437 /core/java/android/os/Debug.java
parentfb20a3676ddd86ccf829482f4e28a7a9dea9741c (diff)
Implement dumpheap -m.
Adds an option to dumpheap that calls mallocInfo and write the xml produced to a file. Bug: 36871013 Test: Run am dumpheap -m <FILE>, am dumpheap -n <FILE>, am dumpheap <FILE> Test: and verified that they produce the correct data. Change-Id: Ifb9e878ea621c7cacc3aa6e3a889c414681dee2d
Diffstat (limited to 'core/java/android/os/Debug.java')
-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 f243f377cb56..de5974216f71 100644
--- a/core/java/android/os/Debug.java
+++ b/core/java/android/os/Debug.java
@@ -1814,6 +1814,13 @@ public final class Debug
public static native void dumpNativeHeap(FileDescriptor fd);
/**
+ * Writes malloc info data to the specified file descriptor.
+ *
+ * @hide
+ */
+ public static native void dumpNativeMallocInfo(FileDescriptor fd);
+
+ /**
* Returns a count of the extant instances of a class.
*
* @hide