mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-27 09:40:42 +00:00
support ArkJs callframe for hiperf
Signed-off-by: yuyanqinghw <yuyanqing539@huawei.com>
This commit is contained in:
parent
3e67169a4d
commit
ae02f0b8ee
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user