Skip to content
Browse files

Merge from AOSP

Change-Id: I8ac8ecf5d57b4d852957a0c4498e3e304e8e2e17
  • Loading branch information...
2 parents f31a6f7 + 987f0cb commit 5220f12dca8ad2666a97e36862bf0d4767e3555e Jean-Baptiste Queru committed Jul 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 vm/hprof/Hprof.cpp
View
2 vm/hprof/Hprof.cpp
@@ -246,6 +246,8 @@ int hprofDumpHeap(const char* fileName, int fd, bool directToDdms)
if (ctx == NULL) {
return -1;
}
+ // first record
+ hprofStartNewRecord(ctx, HPROF_TAG_HEAP_DUMP_SEGMENT, HPROF_TIME);
dvmVisitRoots(hprofRootVisitor, ctx);
dvmHeapBitmapWalk(dvmHeapSourceGetLiveBits(), hprofBitmapCallback, ctx);
hprofFinishHeapDump(ctx);

0 comments on commit 5220f12

Please sign in to comment.
Something went wrong with that request. Please try again.