Searched refs:self_path (Results 1 – 3 of 3) sorted by relevance
48 std::string self_path; in GetCurExecutableDir() local56 self_path = std::string(buf, static_cast<size_t>(size)); in GetCurExecutableDir()60 self_path.resize(size); in GetCurExecutableDir()61 PERFETTO_CHECK(_NSGetExecutablePath(&self_path[0], &size) == 0); in GetCurExecutableDir()65 self_path = std::string(buf, len); in GetCurExecutableDir()66 self_path = self_path.substr(0, self_path.find_last_of("\\")); in GetCurExecutableDir()72 return self_path.substr(0, self_path.find_last_of("/")); in GetCurExecutableDir()76 std::string self_path = GetCurExecutableDir(); in GetTestDataPath() local77 std::string full_path = self_path + "/../../" + path; in GetTestDataPath()80 full_path = self_path + "/" + path; in GetTestDataPath()
49 char self_path[PATH_MAX]; in GetHelperBinary() local50 if (!SafeReadLink("/proc/self/exe", self_path)) { in GetHelperBinary()53 helper_path = string(self_path); in GetHelperBinary()
81 char self_path[PATH_MAX]; in GetExecutablePath() local82 uint32_t size = sizeof(self_path); in GetExecutablePath()83 if (_NSGetExecutablePath(self_path, &size) != 0) in GetExecutablePath()85 return self_path; in GetExecutablePath()