From 6440496a8320c8e7f3d489d87ce2da2788a3996c Mon Sep 17 00:00:00 2001
From: Andy McFadden
DDMS heap dump requests are now streamed directly out of the VM, removing the external storage requirement.
-
The kill -10
(SIGUSR1
) method of generating heap
-dumps has been removed, in favor of a much more useful shell command:
+dumps has been removed from the VM.
+
+A new command-line tool has been added:
am dumpheap <pid> <output-file-name>
@@ -183,7 +188,9 @@ phone. It's only necessary for the application to be debuggable (by setting
android:debuggable="true"
in the <application>
element of the app manifest). The output file is opened by "am", which
means you can write the data to a file on /sdcard
without
-needing the WRITE_EXTERNAL_STORAGE
permission.
+needing the WRITE_EXTERNAL_STORAGE
permission in your app.
+
+The runhat
shell function has been updated to use this.