support ArkJs callframe for hiperf

Signed-off-by: yuyanqinghw <yuyanqing539@huawei.com>
This commit is contained in:
yuyanqinghw 2024-02-28 09:52:41 +08:00
parent 52819f88de
commit 3e67169a4d
2 changed files with 2 additions and 2 deletions

View File

@ -337,10 +337,10 @@ void CollectPidsByAppname(std::set<pid_t> &pids, const std::string &appPackage);
bool CheckAppIsRunning (std::vector<pid_t> &selectPids, const std::string &appPackage, int checkAppMs);
bool IsSupportNonDebuggableApp();
const std::string GetUserType();
bool IsArkJsFile(const std::string& filepath);
std::string GetProcessName(int pid);
bool NeedAdaptSandboxPath(char *filename, int pid, u16 &headerSize);
bool NeedAdaptHMBundlePath(std::string& filename, const std::string& threadname);
bool IsArkJsFile(std::string filepath);
template <typename Func>
class ScopeGuard {

View File

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