Home
last modified time | relevance | path

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

/developtools/profiler/device/services/profiler_service/src/
Dtrace_file_writer.cpp25 TraceFileWriter::TraceFileWriter(const std::string& path) : path_(path), writeBytes_(0) in TraceFileWriter()
40 return path_; in Path()
50 CHECK_TRUE(stream_, 0, "write initial header to %s failed!", path_.c_str()); in Open()
51 path_ = path; in Open()
58 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in Write()
62 CHECK_TRUE(stream_, 0, "binary file %s write raw buffer size failed!", path_.c_str()); in Write()
68 CHECK_TRUE(stream_, 0, "binary file %s write raw buffer data failed!", path_.c_str()); in Write()
94 CHECK_TRUE(stream_, 0, "seek write position to head for %s failed!", path_.c_str()); in Finish()
98 CHECK_TRUE(stream_, 0, "write final header to %s failed!", path_.c_str()); in Finish()
104 CHECK_TRUE(stream_.is_open(), false, "binary file %s not open or open failed!", path_.c_str()); in Flush()
[all …]
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()
65 …CHECK_TRUE(stream_, 0, "read msg length from %s (offset %zu) failed, or no more data!", path_.c_st… in Read()
72 CHECK_TRUE(stream_, 0, "read msg bytes from %s (offset %zu) failed!", path_.c_str(), offset); in Read()
82 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in Read()
83 CHECK_TRUE(!stream_.eof(), 0, "no more data in file %s stream", path_.c_str()); in Read()
87 …CHECK_TRUE(stream_, 0, "read data length from file %s (offset %zu) failed!", path_.c_str(), GetRea… in Read()
93 …CHECK_TRUE(stream_, 0, "read data bytes from %s (offset %zu) failed!", path_.c_str(), GetReadPos(s… in Read()
Dtrace_file_reader.h46 std::string path_ {};
Dtrace_file_writer.h49 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 …if (path_.empty() || (path_.length() >= PATH_MAX) || (realpath(path_.c_str(), realPath) == nullptr… in Open()
33 HILOG_ERROR(LOG_CORE, "%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 __anon5f6ae1af0111::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 __anon1e8dd7df0111::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.h56 path_ = path; in SetPath()
62 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.js165 function mkDir(path_) { argument
166 const parent = path.join(path_, '..');
170 fs.mkdirSync(path_);
/developtools/profiler/device/plugins/ftrace_plugin/include/
Dftrace_data_reader.h33 std::string path_; variable
/developtools/profiler/device/plugins/api/src/
Dplugin_module.cpp24 PluginModule::PluginModule(const std::string& path) : handle_(nullptr), running_(false), path_(path… in PluginModule()
42 if ((path_.length() >= PATH_MAX) || (realpath(path_.c_str(), realPath) == nullptr)) { in Load()
Dplugin_module.h71 std::string path_; variable
/developtools/profiler/device/plugins/hilog_plugin/include/
Dfile_cache.h45 std::string path_;
/developtools/profiler/device/plugins/cpu_plugin/include/
Dcpu_data_plugin.h91 path_ = path; in SetPath()
99 std::string path_; variable
/developtools/ace-ets2bundle/compiler/src/
Dutils.ts215 export function mkDir(path_: string): void {
216 const parent: string = path.join(path_, '..');
220 fs.mkdirSync(path_);
Dgen_abc_plugin.ts137 function mkDir(path_: string): void {
138 const parent: string = path.join(path_, '..');
142 fs.mkdirSync(path_);
/developtools/profiler/device/plugins/diskio_plugin/src/
Ddiskio_data_plugin.cpp29 path_ = "/proc/vmstat"; in DiskioDataPlugin()
177 int32_t ret = ReadFile(path_); in WriteDiskioData()
/developtools/profiler/device/plugins/cpu_plugin/src/
Dcpu_data_plugin.cpp44 path_ = "/proc/"; in CpuDataPlugin()
411 std::string fileName = path_ + std::to_string(pid_) + "/stat"; in WriteCpuUsageInfo()
423 fileName = path_ + "stat"; in WriteCpuUsageInfo()
552 std::string fileName = path_ + std::to_string(pid_) + "/task/" + std::to_string(tid) + "/stat"; in WriteSingleThreadInfo()
567 std::string path = path_ + std::to_string(pid_) + "/task"; in WriteThreadInfo()