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