commit | 4b851a75f7712086a9fc4427f68c99b83725f37d | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Fri Jul 09 16:50:05 2010 -0700 |
committer | Andy McFadden <fadden@android.com> | Tue Jul 13 10:55:17 2010 -0700 |
tree | 8c02af82a7bc04a7ea82b2f3803ad3f73d56e18a | |
parent | 2566990f30f31c6e2bbcbabab26b925e5504ce37 [diff] |
Allow heap dump requests with a FileDescriptor arg. Part of a larger change to allow "am" to initiate hprof heap dumps. The original implementation wrote data to a temp file, because we compute the second part first while doing GC work. Now all paths work like DDMS, writing all data to a memstream and then copying it out to a file at the very end. Also, fix a potential fd leak on failure in the profiling code. Bug 2759474. Change-Id: I0f838cbd9948a23088f08463c3008be7198d76e7