Home
last modified time | relevance | path

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

/ohos5.0/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
H A Dhitrace_dump.cpp139 std::string g_traceRootPath; variable
345 return g_traceRootPath + fileName; in GetFilePath()
369 g_traceRootPath = debugfsPath; in IsTraceMounted()
373 g_traceRootPath = tracefsPath; in IsTraceMounted()
455 if (access((g_traceRootPath + filename).c_str(), W_OK) < 0) { in WriteStrToFile()
457 (g_traceRootPath + filename).c_str(), errno); in WriteStrToFile()
460 return WriteStrToFileInner(g_traceRootPath + filename, str); in WriteStrToFile()
470 int fd = creat((g_traceRootPath + "trace").c_str(), 0); in TruncateFile()
933 std::string src = g_traceRootPath + "/trace_pipe_raw"; in HmWriteCpuRawInner()
1008 MarkClockSync(g_traceRootPath); in DumpTraceLoop()
[all …]
/ohos5.0/base/hiviewdfx/hitrace/cmd/src/
H A Dhitrace_cmd.cpp145 string g_traceRootPath; variable
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()
/ohos5.0/base/hiviewdfx/hitrace/test/unittest/hitrace_meter/
H A Dhitrace_ndk_test.cpp60 static string g_traceRootPath; variable
85 g_traceRootPath = debugfsDir; in SetUpTestCase()
87 g_traceRootPath = tracefsDir; in SetUpTestCase()
219 if (g_traceRootPath == "") { in WriteStrToFileInner()
233 if (access((g_traceRootPath + filename).c_str(), W_OK) == 0) { in WriteStringToFile()
234 if (WriteStrToFileInner(g_traceRootPath + filename, str)) { in WriteStringToFile()
244 if (g_traceRootPath.empty()) { in CleanTrace()
249 ofs.open(g_traceRootPath + TRACE_PATH, ofstream::out); in CleanTrace()
307 return ReadFile2string(g_traceRootPath + TRACE_PATH); in ReadTrace()
/ohos5.0/base/hiviewdfx/hitrace/test/unittest/hitrace_dump/
H A Dhitrace_dump_test.cpp52 std::string g_traceRootPath; variable
122 g_traceRootPath = debugfsDir; in SetUpTestCase()
124 g_traceRootPath = tracefsDir; in SetUpTestCase()
577 ASSERT_TRUE(MarkClockSync(g_traceRootPath) == true);