!951 Add dump raw heap to binary file

Merge pull request !951 from Yellow-Sky-Proton/OpenHarmony-5.0.1-Release
This commit is contained in:
openharmony_ci 2024-11-20 13:41:08 +00:00 committed by Gitee
commit 421d1dd89e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 0 deletions

View File

@ -42,7 +42,10 @@ group("unittest_packages") {
group("ets_runtime") {
deps = [
"$js_root:js_type_metadata",
"$js_root:libark_jsruntime",
"$js_root/ecmascript/dfx/hprof:ark_js_heap_snapshot_tool",
"$js_root/ecmascript/dfx/hprof/rawheap_translate:rawheap_translator",
"$js_root/ecmascript/js_vm:ark_js_vm",
"$js_root/ecmascript/quick_fix:quick_fix",
]

View File

@ -143,6 +143,10 @@ private:
frontend_->AddHeapSnapshotChunk(data, size);
return true;
}
bool WriteBinBlock(char *data, int32_t size) override
{
return WriteChunk(data, size);
}
bool Good() override
{
return frontend_ != nullptr;