Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Merge "hprof generation, not writing the first record"
Browse files Browse the repository at this point in the history
  • Loading branch information
enh-google authored and android code review committed Jul 9, 2012
2 parents 7798a61 + 4769b51 commit 987f0cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vm/hprof/Hprof.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 987f0cb

Please sign in to comment.