diff --git a/ecmascript/dfx/hprof/rawheap_dump.cpp b/ecmascript/dfx/hprof/rawheap_dump.cpp index 87ee953b0b751bef7011903b5306f81e5aed557b..adbef17fb8f4d840337a2ca8094853a2666facc4 100644 --- a/ecmascript/dfx/hprof/rawheap_dump.cpp +++ b/ecmascript/dfx/hprof/rawheap_dump.cpp @@ -20,7 +20,6 @@ #include "ecmascript/object_fast_operator-inl.h" namespace panda::ecmascript { - void ObjectMarker::VisitRoot([[maybe_unused]]Root type, ObjectSlot slot) { JSTaggedValue value(slot.GetTaggedType()); @@ -391,7 +390,7 @@ void RawHeapDumpV1::UpdateStringTable(ObjectMarker &marker) strIdMapObjVec_.emplace(strId, objVec); } }); - LOG_ECMA(INFO) << "rawheap dump, UpdateStringTable count " << strCnt; + LOG_ECMA(INFO) << "rawheap dump, update string table count " << strCnt; } RawHeapDumpV2::RawHeapDumpV2(const EcmaVM *vm, Stream *stream, HeapSnapshot *snapshot, @@ -514,7 +513,7 @@ void RawHeapDumpV2::UpdateStringTable(ObjectMarker &marker) strIdMapObjVec_.emplace(strId, objVec); } }); - LOG_ECMA(INFO) << "rawheap dump, UpdateStringTable count " << strCnt; + LOG_ECMA(INFO) << "rawheap dump, update string table count " << strCnt; } uint32_t RawHeapDumpV2::GenerateRegionId(JSTaggedType addr) diff --git a/ecmascript/runtime.h b/ecmascript/runtime.h index f5064272ea40d0a80246607702f45464e505e671..0baf9bfa8efe974c0ed737dce7079d1d5627df2a 100644 --- a/ecmascript/runtime.h +++ b/ecmascript/runtime.h @@ -35,7 +35,7 @@ namespace panda::ecmascript { class EcmaStringTable; -using AppfreezeFilterCallback = std::function; +using AppFreezeFilterCallback = std::function; using ReleaseSecureMemCallback = std::function; class Runtime { @@ -254,12 +254,12 @@ public: v.VisitRangeRoot(Root::ROOT_VM, begin, end); } - AppfreezeFilterCallback GetAppFreezeFilterCallback() const + AppFreezeFilterCallback GetAppFreezeFilterCallback() const { return appfreezeFilterCallback_; } - void SetAppFreezeFilterCallback(AppfreezeFilterCallback cb) + void SetAppFreezeFilterCallback(AppFreezeFilterCallback cb) { appfreezeFilterCallback_ = cb; }