Home
last modified time | relevance | path

Searched refs:recordFile_ (Results 1 – 7 of 7) sorted by relevance

/developtools/profiler/device/plugins/native_daemon/src/
Dutilities.cpp85 recordFile_ = fopen(tempFile.c_str(), mode.c_str()); in StdoutRecord()
86 if (recordFile_ == nullptr) { in StdoutRecord()
100 if (recordFile_ == nullptr) { in Start()
101 recordFile_ = std::tmpfile(); in Start()
103 if (recordFile_ == nullptr) { in Start()
106 recordFile_ = fopen(fileName.c_str(), "w+"); in Start()
107 if (recordFile_ == nullptr) { in Start()
121 if (dup2(fileno(recordFile_), STDOUT_FILENO) != -1) { in Start()
139 if (recordFile_ != nullptr) { in Stop()
140 const long fileLength = lseek(fileno(recordFile_), 0, SEEK_END); in Stop()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/hiperf/
Dutilities.cpp133 recordFile_ = fopen(resolvedPath.c_str(), mode.c_str()); in StdoutRecord()
134 if (recordFile_ == nullptr) { in StdoutRecord()
148 if (recordFile_ == nullptr) { in Start()
149 recordFile_ = std::tmpfile(); in Start()
151 if (recordFile_ == nullptr) { in Start()
155 recordFile_ = fopen(resolvedPath.c_str(), "w+"); in Start()
156 if (recordFile_ == nullptr) { in Start()
170 if (dup2(fileno(recordFile_), STDOUT_FILENO) != -1) { in Start()
188 if (recordFile_ != nullptr) { in Stop()
189 const long fileLength = lseek(fileno(recordFile_), 0, SEEK_END); in Stop()
[all …]
/developtools/hiperf/src/
Dutilities.cpp156 recordFile_ = fopen(resolvedPath.c_str(), mode.c_str()); in StdoutRecord()
157 if (recordFile_ == nullptr) { in StdoutRecord()
171 if (recordFile_ == nullptr) { in Start()
172 recordFile_ = std::tmpfile(); in Start()
174 if (recordFile_ == nullptr) { in Start()
178 recordFile_ = fopen(resolvedPath.c_str(), "w+"); in Start()
179 if (recordFile_ == nullptr) { in Start()
193 if (dup2(fileno(recordFile_), STDOUT_FILENO) != -1) { in Start()
211 if (recordFile_ != nullptr) { in Stop()
212 const long fileLength = lseek(fileno(recordFile_), 0, SEEK_END); in Stop()
[all …]
Dsubcommand_report.cpp38 if (!Option::GetOptionValue(args, "-i", recordFile_[FIRST])) { in ParseOption()
44 if (!Option::GetOptionValue(args, "--diff", recordFile_[SECOND])) { in ParseOption()
47 if (!recordFile_[SECOND].empty()) { in ParseOption()
117 printf(" recordFile_:\t%s\n", recordFile_[FIRST].c_str()); in DumpOptions()
118 printf(" recordFile_:\t%s\n", recordFile_[SECOND].c_str()); in DumpOptions()
161 if (recordFile_[FIRST].empty()) { in VerifyOption()
165 if (!recordFile_[SECOND].empty()) { in VerifyOption()
443 if (access(recordFile_[index_].c_str(), F_OK) != 0) { in LoadPerfData()
445 printf("Can not access data file %s\n", recordFile_[index_].c_str()); in LoadPerfData()
450 recordFileReader_ = PerfFileReader::Instance(recordFile_[index_]); in LoadPerfData()
[all …]
/developtools/hiperf/include/
Dsubcommand_report.h100 ), recordFile_ {"perf.data", ""} // default file path is perf.data in SubCommandReport()
145 std::string recordFile_[MAX]; variable
Dutilities.h275 std::FILE *recordFile_ = nullptr; // save the output variable
/developtools/profiler/device/plugins/native_daemon/include/
Dutilities.h271 std::FILE *recordFile_ = nullptr; // save the output variable