support ArkJs callframe for hiperf

Signed-off-by: yuyanqinghw <yuyanqing539@huawei.com>
This commit is contained in:
yuyanqinghw 2024-02-28 14:42:06 +08:00
parent 3e67169a4d
commit ae02f0b8ee
2 changed files with 1 additions and 7 deletions

View File

@ -747,12 +747,6 @@ int CallStack::FindUnwindTable(uintptr_t pc, UnwindTableInfo& outTableInfo, void
if (mapIndex >= 0) {
auto map = unwindInfoPtr->thread.GetMaps()[mapIndex];
if (map != nullptr) {
if (map->IsArkExecutable()) {
HLOGD("StepArkFrame");
// arkFrame
return 1;
}
SymbolsFile *symbolsFile = unwindInfoPtr->thread.FindSymbolsFileByMap(map);
if (symbolsFile != nullptr) {
return FillUnwindTable(symbolsFile, map, unwindInfoPtr, pc, outTableInfo);

View File

@ -774,7 +774,7 @@ bool NeedAdaptHMBundlePath(std::string& filename, const std::string& threadname)
bool IsArkJsFile(const std::string& filepath)
{
return (StringEndsWith(filepath, ".hap") || StringEndsWith(filepath, ".hsp") ||
StringEndsWith(filepath, ".js]") || StringStartsWith(filepath, "[anon:ArkTs Code"));
StringStartsWith(filepath, "[anon:ArkTS Code"));
}
} // namespace HiPerf
} // namespace Developtools