Home
last modified time | relevance | path

Searched refs:Write (Results 1 – 25 of 51) sorted by relevance

123

/developtools/hiperf/src/
Dperf_file_format.cpp55 bool PerfFileSection::Write(uint32_t u32) in Write() function in OHOS::Developtools::HiPerf::PerfFileSection
58 return Write((char *)&value, sizeof(uint32_t)); in Write()
61 bool PerfFileSection::Write(uint64_t u64) in Write() function in OHOS::Developtools::HiPerf::PerfFileSection
64 return Write((char *)&value, sizeof(uint64_t)); in Write()
67 bool PerfFileSection::Write(const std::string &str) in Write() function in OHOS::Developtools::HiPerf::PerfFileSection
69 if (Write((uint32_t)str.size() + 1)) { // include the ending \0 in Write()
70 return Write(str.c_str(), str.size(), str.size() + 1); in Write()
76 bool PerfFileSection::Write(const char *buf, size_t size) in Write() function in OHOS::Developtools::HiPerf::PerfFileSection
78 return Write(buf, size, size); in Write()
81 bool PerfFileSection::Write(const char *buf, size_t size, size_t max) in Write() function in OHOS::Developtools::HiPerf::PerfFileSection
[all …]
Dperf_file_writer.cpp139 if (!Write(buf.data(), record.GetSize())) { in WriteRecord()
237 bool PerfFileWriter::Write(const void *buf, size_t len) in Write() function in OHOS::Developtools::HiPerf::PerfFileWriter
274 if (!Write(attrId.ids.data(), attrId.ids.size() * sizeof(uint64_t))) { in WriteAttrAndId()
291 if (!Write(&fileAttr, sizeof(fileAttr))) { in WriteAttrAndId()
334 if (!Write(&header_, sizeof(header_))) { in WriteHeader()
374 if (!Write(&featureSection->header, sizeof(featureSection->header))) { in WriteFeatureData()
392 if (!Write(&buf[0], featureSection->header.size)) { in WriteFeatureData()
/developtools/profiler/device/plugins/native_hook/test/unittest/
Dstack_writer_test.cpp125 EXPECT_TRUE(write->Write((const void*)buffer1, sizeof(buffer1)));
127 EXPECT_TRUE(write->Write((const void*)buffer2, sizeof(buffer2)));
129 EXPECT_TRUE(write->Write((const void*)buffer3, sizeof(buffer3)));
132 EXPECT_FALSE(write->Write((const void*)buffer3, 0));
133 EXPECT_FALSE(write->Write(nullptr, 0));
149 EXPECT_FALSE(write->Write((const void*)buffer1, sizeof(buffer1)));
151 EXPECT_FALSE(write->Write((const void*)buffer2, sizeof(buffer2)));
153 EXPECT_FALSE(write->Write((const void*)buffer3, sizeof(buffer3)));
156 EXPECT_FALSE(write->Write((const void*)buffer3, 0));
157 EXPECT_FALSE(write->Write(nullptr, 0));
[all …]
/developtools/profiler/device/services/profiler_service/test/unittest/
Dtrace_file_writer_test.cpp62 HWTEST_F(TraceFileWriterTest, Write, TestSize.Level1)
69 EXPECT_EQ(writer->Write(testData.data(), testData.size()), sizeof(uint32_t) + testData.size());
84 … EXPECT_EQ(writer->Write(testData.data(), testData.size()), sizeof(uint32_t) + testData.size());
122 EXPECT_GT(writer->Write(pluginData), 0);
138 EXPECT_EQ(writer->Write(testData.data(), testData.size()), sizeof(uint32_t) + testData.size());
Dtrace_file_reader_test.cpp75 long bytes = writer->Write(pluginData);
110 long bytes = writer->Write(pluginData);
/developtools/hiperf/include/
Dperf_file_format.h153 bool Write(uint32_t u32);
154 bool Write(uint64_t u64);
155 bool Write(const std::string &str);
157 bool Write(const char *buf, size_t size);
158 bool Write(const char *buf, size_t size, size_t max);
Dperf_file_writer.h73 bool Write(const void *buf, size_t len);
/developtools/smartperf_host/ide/src/doc/md/
Dquickstart_ability_monitor.md110 - Data Write:从内存写入磁盘的总字节数。
111 - Data Write/sec:每秒从内存写入磁盘的字节数。
114 - Write Out:写入的字节数。
115 - Write Out/sec:每秒写入的字节数。
Dquickstart_Import_so.md74 以系统调用类型统计,如图显示的是 grep 进程下的 Read 和 Write 系统调用的时长占比饼图和 Table 表。
76 - Type:系统调用类型(Read和Write)。
/developtools/profiler/device/services/profiler_service/src/
Dtrace_file_writer.h52 long Write(const MessageLite& message);
54 long Write(const void* data, size_t size) override;
Dtrace_file_writer.cpp87 Write(data, size); in SetPluginConfig()
115 Write(msgData.data(), msgData.size()); in WriteStandalonePluginData()
141 Write(msgData.data(), msgData.size()); in WriteStandalonePluginData()
231 long TraceFileWriter::Write(const void* data, size_t size) in Write() function in TraceFileWriter
348 Write(pluginConfigsData_[i].data(), pluginConfigsData_[i].size()); in IsSplitFile()
356 long TraceFileWriter::Write(const MessageLite& message) in Write() function in TraceFileWriter
369 return Write(msgData.data(), msgData.size()); in Write()
/developtools/profiler/device/plugins/api/test/unittest/
Dbuffer_write_test.cpp162 EXPECT_TRUE(write->Write(buffer1, sizeof(buffer1)));
165 EXPECT_TRUE(write->Write(buffer2, sizeof(buffer2)));
168 EXPECT_TRUE(write->Write(buffer3, sizeof(buffer3)));
170 EXPECT_FALSE(write->Write(nullptr, 0));
Dplugin_manager_test.cpp169 EXPECT_FALSE(bufferWriter.Write(str.data(), str.size()));
172 EXPECT_TRUE(bufferWriter.Write(str.data(), str.size()));
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dresult_transporter.cpp65 long ResultTransporter::Write(ResultPtr&& packet) in Write() function in ResultTransporter
100 long nbytes = Write(std::move(packet)); in Submit()
/developtools/profiler/device/plugins/hilog_plugin/include/
Dfile_cache.h38 long Write(char* bytes, int32_t len);
/developtools/profiler/hiebpf/test/unittest/
Dringbuffer_test.cpp207 ret = ringBuffer->Write(-1, 1);
209 ret = ringBuffer->Write(writeFd, len);
222 ret = ringBuffer->Write(writeFd, len);
252 ret = ringBuffer->Write(-1, 1);
254 ret = ringBuffer->Write(writeFd, len);
283 ret = ringBuffer->Write(-1, 1);
285 ret = ringBuffer->Write(writeFd, len);
/developtools/profiler/device/plugins/api/include/
Dwriter.h25 virtual long Write(const void* data, size_t size) = 0;
/developtools/profiler/device/plugins/native_hook/include/
Dstack_writer.h36 long Write(const void* data, size_t size) override;
/developtools/profiler/device/plugins/ftrace_plugin/include/
Dresult_transporter.h50 long Write(ResultPtr&& packet);
/developtools/profiler/interfaces/kits/test/unittest/
Dplugin_module_api_test.cpp78 static long Write(WriterStruct* writer, const void* data, size_t size);
138 long PluginModuleApiTest::Write(WriterStruct* writer, const void* data, size_t size) in Write() function in __anon899611830111::PluginModuleApiTest
231 Write,
255 Write,
309 Write,
553 Write,
/developtools/hdc/src/common/
Dfile_descriptor.h37 int Write(uint8_t *data, int size);
/developtools/profiler/device/plugins/api/src/
Dwriter_adapter.cpp49 return writerAdaptor->writer_->Write(data, size); in WriteFunc()
Dbuffer_writer.h37 long Write(const void* data, size_t size) override;
/developtools/profiler/device/plugins/native_hook/src/
Dstack_writer.cpp59 long StackWriter::Write(const void* data, size_t size) in Write() function in StackWriter
/developtools/profiler/device/plugins/hilog_plugin/src/
Dfile_cache.cpp40 long FileCache::Write(char* bytes, int32_t len) in Write() function in FileCache

123