Home
last modified time | relevance | path

Searched refs:path_ (Results 1 – 22 of 22) sorted by relevance

/developtools/profiler/device/services/profiler_service/src/
Dtrace_file_reader.cpp46 CHECK_TRUE(stream_, false, "read header from %s failed!", path_.c_str()); in Open()
48 path_ = path; in Open()
59 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in Read()
60 CHECK_TRUE(!stream_.eof(), 0, "no more data in file %s stream", path_.c_str()); in Read()
66 CHECK_TRUE(msgLen > 0, 0, "read in file %s msg length: %d", path_.c_str(), msgLen); in Read()
67 …CHECK_TRUE(stream_, 0, "read msg length from %s (offset %zu) failed, or no more data!", path_.c_st… in Read()
75 CHECK_TRUE(stream_, 0, "read msg bytes from %s (offset %zu) failed!", path_.c_str(), offset); in Read()
85 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in ReadLen()
86 CHECK_TRUE(!stream_.eof(), 0, "no more data in file %s stream", path_.c_str()); in ReadLen()
91 CHECK_TRUE(dataLen > 0, 0, "read in file %s data length: %d", path_.c_str(), dataLen); in ReadLen()
[all …]
Dtrace_file_writer.cpp40 uint32_t splitFileMaxNum) : path_(path), isSplitFile_(splitFile) in TraceFileWriter()
62 return path_; in Path()
109 path_ = oldPath_.substr(0, pos) + "_" + timeStr + "_" + std::to_string(fileNum_) + in WriteHeader()
112 path_ = oldPath_ + "_" + timeStr + "_" + std::to_string(fileNum_); in WriteHeader()
114 splitFilePaths_.push(path_); in WriteHeader()
118 stream_.open(path_, std::ios_base::out | std::ios_base::binary); in WriteHeader()
119 CHECK_TRUE(stream_.is_open(), false, "open %s failed, %d!", path_.c_str(), errno); in WriteHeader()
125 CHECK_TRUE(stream_, false, "write initial header to %s failed!", path_.c_str()); in WriteHeader()
127 HILOG_INFO(LOG_CORE, "write file(%s) header end", path_.c_str()); in WriteHeader()
154 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in Write()
[all …]
Dtrace_file_reader.h47 std::string path_ {};
Dtrace_file_writer.h69 std::string path_ {};
/developtools/profiler/device/plugins/hilog_plugin/src/
Dfile_cache.cpp18 FileCache::FileCache(const std::string& path) : path_(path), fp_(nullptr) in FileCache()
20 HILOG_INFO(LOG_CORE, "FileCache: path(%s)!", path_.c_str()); in FileCache()
32 …CHECK_TRUE(!(path_.empty() || (path_.length() >= PATH_MAX) || (realpath(path_.c_str(), realPath) =… in Open()
33 false, "%s:path is invalid: %s, errno=%d", __func__, path_.c_str(), errno); in Open()
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
Dfile_utils_test.cpp33 std::string path_; member in __anon7f26b6aa0111::FileUtilsTest
38 path_ = "file_utils_test.txt"; in SetUp()
39 std::ofstream fout(path_); in SetUp()
45 unlink(path_.c_str()); in TearDown()
56 int fd = open(path_.c_str(), O_RDONLY);
83 std::string text = FileUtils::ReadFile(path_);
Dftrace_data_reader_test.cpp37 std::string path_ = "raw_data.bin"; member in __anon0ce077da0111::FtraceDataReaderTest
42 std::ofstream fout(path_); in SetUp()
49 unlink(path_.c_str()); in TearDown()
81 FtraceDataReader reader(path_);
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dftrace_data_reader.cpp29 FtraceDataReader::FtraceDataReader(const std::string& path) : path_(path), readFd_(-1) in FtraceDataReader()
42 CHECK_TRUE(close(readFd_) == 0, NO_RETVAL, "close %s failed, %d", path_.c_str(), errno); in ~FtraceDataReader()
/developtools/profiler/device/plugins/diskio_plugin/include/
Ddiskio_data_plugin.h57 path_ = path; in SetPath()
63 std::string path_; variable
/developtools/ace_js2bundle/ace-loader/src/
DgenBin-plugin.js85 function mkDir(path_) { argument
86 const parent = path.join(path_, '..')
90 fs.mkdirSync(path_)
DgenAbc-plugin.js215 function mkDir(path_) { argument
216 const parent = path.join(path_, '..');
220 fs.mkdirSync(path_);
/developtools/profiler/device/plugins/api/src/
Dplugin_module.cpp25 : handle_(nullptr), running_(false), path_(path), structPtr_(nullptr) {} in PluginModule()
41 CHECK_TRUE((path_.length() < PATH_MAX) && (realpath(path_.c_str(), realPath) != nullptr), false, in Load()
172 return path_; in GetPath()
Dplugin_module.h83 std::string path_; variable
/developtools/profiler/device/plugins/process_plugin/include/
Dprocess_data_plugin.h56 path_ = path; in SetPath()
87 std::string path_; variable
/developtools/profiler/device/plugins/cpu_plugin/include/
Dcpu_data_plugin.h101 path_ = path; in SetPath()
109 std::string path_; variable
/developtools/profiler/device/plugins/ftrace_plugin/include/
Dftrace_data_reader.h33 std::string path_; variable
/developtools/profiler/device/plugins/hilog_plugin/include/
Dfile_cache.h45 std::string path_;
/developtools/profiler/device/plugins/cpu_plugin/src/
Dcpu_data_plugin.cpp44 path_ = "/proc/"; in CpuDataPlugin()
116 procDir = OpenDestDir(path_); in WriteProcnum()
412 if (strncmp(path_.c_str(), "/proc/", strlen("/proc/")) != 0) { in WriteSystemCpuUsage()
464 std::string fileName = path_ + std::to_string(pid_) + "/stat"; in WriteCpuUsageInfo()
478 std::string fileName = path_ + "stat"; in WriteCpuUsageInfo()
601 std::string fileName = path_ + std::to_string(pid_) + "/task/" + std::to_string(tid) + "/stat"; in WriteSingleThreadInfo()
616 std::string path = path_ + std::to_string(pid_) + "/task"; in WriteThreadInfo()
/developtools/profiler/device/plugins/process_plugin/src/
Dprocess_data_plugin.cpp125 …if (snprintf_s(fileName, sizeof(fileName), sizeof(fileName) - 1, "%s%d/%s", path_.c_str(), pid, pF… in ReadProcPidFile()
279 procDir = OpenDestDir(path_.c_str()); in WriteProcesseList()
305 std::string path = path_ + std::to_string(pid) + "/task"; in WriteThreadData()
376 std::string path = path_ + "stat"; in ReadBootTime()
424 std::string path = path_ + std::to_string(pid) + "/stat"; in ReadCpuUsage()
474 std::string path = path_ + std::to_string(pid) + "/io"; in WriteDiskioData()
561 std::string path = path_ + std::to_string(pid) + "/smaps_rollup"; in WritePssData()
/developtools/profiler/device/plugins/diskio_plugin/src/
Ddiskio_data_plugin.cpp30 path_ = "/proc/vmstat"; in DiskioDataPlugin()
182 int32_t ret = ReadFile(path_); in WriteDiskioData()
/developtools/ace_ets2bundle/compiler/src/
Dutils.ts281 export function mkDir(path_: string): void {
282 const parent: string = path.join(path_, '..');
286 fs.mkdirSync(path_);
Dgen_abc_plugin.ts663 function mkDir(path_: string): void {
664 const parent: string = path.join(path_, '..');
668 fs.mkdirSync(path_);