OSDN Git Service

Add support for streaming hprof dumps.
authorAndy McFadden <fadden@android.com>
Fri, 29 Jan 2010 01:01:39 +0000 (17:01 -0800)
committerAndy McFadden <fadden@android.com>
Fri, 29 Jan 2010 21:23:39 +0000 (13:23 -0800)
commit6bf992c9d51f1e12aa37fe4c791c156402a9b79b
tree524eaec56bfbbcb454869be8952dcd4fcbff2da5
parent97d22dfc9a63d99dbad44a00622a9979b250b9d9
Add support for streaming hprof dumps.

This adds the dumpHprofDataDdms method, which generates the hprof dump
in RAM and then spits the whole thing at DDMS.  The idea is to avoid
touching /sdcard, since not all apps have permission to do that.

This rearranges hprofShutdown() a fair bit.  It used to re-use a context
struct, saving interesting bits to local variables before zapping it;
now we just create a second context struct and free both at the end.

For bug 2092855.
libcore/dalvik/src/main/java/dalvik/system/VMDebug.java
vm/SignalCatcher.c
vm/alloc/Heap.c
vm/alloc/HeapInternal.h
vm/hprof/Hprof.c
vm/hprof/Hprof.h
vm/hprof/HprofOutput.c
vm/native/dalvik_system_VMDebug.c