From c0df93184fb07b5026595a43db4cfd3ecd55cf8a Mon Sep 17 00:00:00 2001 From: wenlong_12 Date: Thu, 21 Nov 2024 17:38:40 +0800 Subject: [PATCH] Modify the usage of DfxArk class Signed-off-by: wenlong_12 --- src/symbols_file.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/symbols_file.cpp b/src/symbols_file.cpp index f7a5935..f5fb5a6 100644 --- a/src/symbols_file.cpp +++ b/src/symbols_file.cpp @@ -937,7 +937,7 @@ public: HLOGD("symbol file name %s loadOffSet %u abcDataSize_ %u", filePath_.c_str(), (uint32_t)loadOffSet_, (uint32_t)abcDataSize_); } - auto ret = DfxArk::ArkCreateJsSymbolExtractor(&arkExtractorptr_); + auto ret = DfxArk::Instance().ArkCreateJsSymbolExtractor(&arkExtractorptr_); if (ret < 0) { arkExtractorptr_ = 0; HLOGE("failed to call ArkCreateJsSymbolExtractor, the symbol file is:%s", filePath_.c_str()); @@ -1000,9 +1000,10 @@ public: JsFunction jsFunc; std::string module = map->name; HLOGD("map->name module:%s", module.c_str()); - auto ret = DfxArk::ParseArkFrameInfo(static_cast(ip), static_cast(map->begin), - loadOffSet_, abcDataPtr_.get(), abcDataSize_, - arkExtractorptr_, &jsFunc); + auto ret = DfxArk::Instance().ParseArkFrameInfo(static_cast(ip), + static_cast(map->begin), + loadOffSet_, abcDataPtr_.get(), abcDataSize_, + arkExtractorptr_, &jsFunc); if (ret == -1) { HLOGD("failed to call ParseArkFrameInfo, the symbol file is : %s", map->name.c_str()); return DfxSymbol(ip, "");