diff --git a/vm/hprof/Hprof.cpp b/vm/hprof/Hprof.cpp index 4a6b1a69a8..09890f9f6d 100644 --- a/vm/hprof/Hprof.cpp +++ b/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);