Home
last modified time | relevance | path

Searched refs:g_traceRootPath (Results 1 - 4 of 4) sorted by relevance

/base/hiviewdfx/hitrace/cmd/src/
H A Dhitrace_cmd.cpp145 string g_traceRootPath; member
183 g_traceRootPath = debugfsPath; in IsTraceMounted()
187 g_traceRootPath = tracefsPath; in IsTraceMounted()
197 OHOS::HiviewDFX::Hitrace::CanonicalizeSpecPath((g_traceRootPath + filename).c_str()); in WriteStrToFile()
566 std::string tracePath = g_traceRootPath + TRACE_PATH; in DumpTrace()
718 OHOS::HiviewDFX::Hitrace::MarkClockSync(g_traceRootPath); in HandleRecordingShortText()
753 OHOS::HiviewDFX::Hitrace::MarkClockSync(g_traceRootPath); in HandleRecordingLongDump()
761 OHOS::HiviewDFX::Hitrace::MarkClockSync(g_traceRootPath); in HandleRecordingLongFinish()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
H A Dhitrace_dump.cpp132 std::string g_traceRootPath; variable
150 return g_traceRootPath + fileName; in GetFilePath()
174 g_traceRootPath = debugfsPath; in IsTraceMounted()
178 g_traceRootPath = tracefsPath; in IsTraceMounted()
252 if (access((g_traceRootPath + filename).c_str(), W_OK) < 0) { in WriteStrToFile()
254 (g_traceRootPath + filename).c_str(), errno); in WriteStrToFile()
257 return WriteStrToFileInner(g_traceRootPath + filename, str); in WriteStrToFile()
267 int fd = creat((g_traceRootPath + "trace").c_str(), 0); in TruncateFile()
741 std::string srcPath = g_traceRootPath + priorityTracingCategory[i]; in WriteEventsFormat()
782 std::string src = g_traceRootPath in HmWriteCpuRawInner()
[all...]
/base/hiviewdfx/hitrace/test/unittest/hitrace_meter/
H A Dhitrace_ndk_test.cpp100 static string g_traceRootPath; member
125 g_traceRootPath = debugfsDir; in SetUpTestCase()
127 g_traceRootPath = tracefsDir; in SetUpTestCase()
259 if (g_traceRootPath == "") { in WriteStrToFileInner()
273 if (access((g_traceRootPath + filename).c_str(), W_OK) == 0) { in WriteStringToFile()
274 if (WriteStrToFileInner(g_traceRootPath + filename, str)) { in WriteStringToFile()
284 if (g_traceRootPath.empty()) { in CleanTrace()
289 ofs.open(g_traceRootPath + TRACE_PATH, ofstream::out); in CleanTrace()
347 return ReadFile2string(g_traceRootPath + TRACE_PATH); in ReadTrace()
/base/hiviewdfx/hitrace/test/unittest/hitrace_dump/
H A Dhitrace_dump_test.cpp52 std::string g_traceRootPath; member
122 g_traceRootPath = debugfsDir; in SetUpTestCase()
124 g_traceRootPath = tracefsDir; in SetUpTestCase()
723 ASSERT_TRUE(MarkClockSync(g_traceRootPath) == true); in HWTEST_F()

Completed in 8 milliseconds