From 11bbd029d81d2c3336446767bf47d14b13b27fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E9=9F=AC?= Date: Wed, 30 Jul 2025 04:04:00 +0000 Subject: [PATCH] add sync binary dump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 卢韬 --- ecmascript/dfx/hprof/heap_profiler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ecmascript/dfx/hprof/heap_profiler.cpp b/ecmascript/dfx/hprof/heap_profiler.cpp index 984ca0958a..112289400c 100755 --- a/ecmascript/dfx/hprof/heap_profiler.cpp +++ b/ecmascript/dfx/hprof/heap_profiler.cpp @@ -401,6 +401,11 @@ bool HeapProfiler::DumpHeapSnapshot(Stream *stream, const DumpSnapShotOption &du } // ide. if (dumpOption.isSync) { + if (dumpOption.dumpFormat == DumpFormat::BINARY && callback == nullptr) { + return BinaryDump(stream, dumpOption); + } else { + return DoDump(stream, dumpOption); + } return DoDump(stream, progress, dumpOption); } AppFreezeFilterCallback appfreezeCallback = Runtime::GetInstance()->GetAppFreezeFilterCallback(); -- Gitee