From 6440496a8320c8e7f3d489d87ce2da2788a3996c Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Tue, 19 Oct 2010 11:25:02 -0700 Subject: [PATCH] Update heap dump notes. The release order changed slightly. Bug 3110872 is related. Change-Id: I2b2982a29910ee58746188e9dbd61ffd9c3b3d64 --- docs/heap-profiling.html | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/docs/heap-profiling.html b/docs/heap-profiling.html index ca0c2bce7..dfb3cd18b 100644 --- a/docs/heap-profiling.html +++ b/docs/heap-profiling.html @@ -165,16 +165,21 @@ you must have a card inserted and the permission enabled in your application.

-

Android 2.2 ("Froyo"), Android 2.x ("Gingerbread")

+

Android 2.2 ("Froyo")

DDMS heap dump requests are now streamed directly out of the VM, removing the external storage requirement.

-

Android 2.x ("Honeycomb")

+

Android 2.3 ("Gingerbread")

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. +

+ +

Android x.y ("Honeycomb")

+

+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.

Examining the data

-- 2.11.0