feat: hidebug support to input captureNumericValue = true

Signed-off-by: yanmengzhao1 <yanmengzhao1@huawei.com>
This commit is contained in:
yanmengzhao1 2024-06-25 15:57:05 +08:00
parent 67d8004b0b
commit 791a95356f

View File

@ -410,7 +410,7 @@ napi_value DumpHeapData(napi_env env, napi_callback_info info)
return CreateErrorMessage(env, "file created failed.");
}
NativeEngine *engine = reinterpret_cast<NativeEngine*>(env);
engine->DumpHeapSnapshot(filePath);
engine->DumpHeapSnapshot(filePath, true, DumpFormat::JSON, false, true);
return CreateUndefined(env);
}
@ -439,7 +439,7 @@ napi_value DumpJsHeapData(napi_env env, napi_callback_info info)
return CreateErrorMessage(env, "file created failed.");
}
NativeEngine *engine = reinterpret_cast<NativeEngine*>(env);
engine->DumpHeapSnapshot(filePath);
engine->DumpHeapSnapshot(filePath, true, DumpFormat::JSON, false, true);
return CreateUndefined(env);
}