Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 25 of 35) sorted by relevance

12

/developtools/profiler/device/services/profiler_service/test/unittest/
Dprofiler_data_repeater_test.cpp43 const int bufferSize = 10; variable
44 auto dataRepeater = std::make_shared<ProfilerDataRepeater>(bufferSize);
47 for (int i = 0; i < bufferSize; i++) {
61 const int bufferSize = 10; variable
63 auto inDataRepeater = std::make_shared<ProfilerDataRepeater>(bufferSize);
66 auto outDataRepeater = std::make_shared<ProfilerDataRepeater>(bufferSize);
111 const int bufferSize = itemCounts; variable
112 auto inDataRepeater = std::make_shared<ProfilerDataRepeater>(bufferSize);
115 auto outDataRepeater = std::make_shared<ProfilerDataRepeater>(bufferSize);
163 const int bufferSize = 10; variable
[all …]
/developtools/profiler/device/plugins/memory_plugin/src/
Dtest_main.cpp42 const int bufferSize = 256; in main() local
43 char buffer[bufferSize] = { 0 }; in main()
44 strerror_r(errno, buffer, bufferSize); in main()
Dmemory_module.cpp34 static int MemPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in MemPluginReportResult() argument
38 return g_plugin->Report(bufferData, bufferSize); in MemPluginReportResult()
/developtools/profiler/device/plugins/cpu_plugin/src/
Dcpu_module.cpp34 static int CpuPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in CpuPluginReportResult() argument
38 return g_plugin->Report(bufferData, bufferSize); in CpuPluginReportResult()
/developtools/profiler/device/plugins/diskio_plugin/src/
Ddiskio_module.cpp34 static int DiskioPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in DiskioPluginReportResult() argument
38 return g_plugin->Report(bufferData, bufferSize); in DiskioPluginReportResult()
/developtools/profiler/device/plugins/sample_plugin/src/
Dsample_module.cpp35 static int SamplePluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in SamplePluginReportResult() argument
38 return g_plugin->Report(bufferData, bufferSize); in SamplePluginReportResult()
/developtools/profiler/device/plugins/network_plugin/src/
Dnetwork_module.cpp35 static int NetworkPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in NetworkPluginReportResult() argument
41 return g_plugin->Report(bufferData, bufferSize); in NetworkPluginReportResult()
/developtools/profiler/device/plugins/process_plugin/src/
Dprocess_module.cpp35 static int ProcessPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in ProcessPluginReportResult() argument
41 return g_plugin->Report(bufferData, bufferSize); in ProcessPluginReportResult()
/developtools/profiler/device/services/ipc/src/
Dsocket_context.cpp99 uint32_t bufferSize = MEMORY_BLOCK_UNIT; in UnixSocketRecv() local
102 std::vector<unsigned char> buf(bufferSize); in UnixSocketRecv()
113 if (pph->protoSize > bufferSize) { in UnixSocketRecv()
118 bufferSize = (pph->protoSize / MEMORY_BLOCK_UNIT + 1) * MEMORY_BLOCK_UNIT; in UnixSocketRecv()
119 buf.resize(bufferSize); in UnixSocketRecv()
/developtools/profiler/device/services/profiler_service/src/
Dtrace_file_reader.cpp98 bool TraceFileReader::ReadData(uint8_t buffer[], uint32_t bufferSize) in ReadData() argument
103 stream_.read(reinterpret_cast<CharPtr>(buffer), bufferSize); in ReadData()
107 CHECK_TRUE(helper_.AddSegment(buffer, bufferSize), false, "Add payload for data bytes failed!"); in ReadData()
Dtrace_file_reader.h40 bool ReadData(uint8_t buffer[], uint32_t bufferSize);
/developtools/profiler/device/plugins/api/src/
Dcommand_poller.cpp46 uint32_t bufferSize = cmd.buffer_sizes(0); in OnCreateSessionCmd() local
58 if (bufferSize != 0) { in OnCreateSessionCmd()
59 HILOG_DEBUG(LOG_CORE, "%s:bufferSize = %d", __func__, bufferSize); in OnCreateSessionCmd()
66 CHECK_TRUE(pluginManager->CreateWriter(config.name(), bufferSize, smbFd, eventFd), false, in OnCreateSessionCmd()
Dplugin_manager.h60 bool CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventFd);
Dplugin_manager.cpp437 bool PluginManager::CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventF… in CreateWriter() argument
446 if (bufferSize > 0) { in CreateWriter()
447 HILOG_DEBUG(LOG_CORE, "%s:%s Use ShareMemory %d", __func__, pluginName.c_str(), bufferSize); in CreateWriter()
451 … std::make_shared<BufferWriter>(pluginName, pluginVersion, bufferSize, smbFd, eventFd, index)); in CreateWriter()
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
Dftrace_data_reader_test.cpp86 long bufferSize = static_cast<long>(buffer.size()); variable
87 EXPECT_EQ(reader.Read(buffer.data(), buffer.size()), bufferSize);
/developtools/profiler/device/services/plugin_service/src/
Dplugin_command_builder.cpp29 uint32_t bufferSize) in BuildCreateSessionCmd() argument
36 csc->add_buffer_sizes(bufferSize); in BuildCreateSessionCmd()
/developtools/smartperf_host/ide/test/trace/component/setting/
DSpRecordSetting.test.ts32 expect(spEle.bufferSize).toEqual(64);
/developtools/profiler/device/plugins/api/test/unittest/
Dcommand_poller_test.cpp95 virtual bool CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventFd) in CreateWriter() argument
97 if (bufferSize == 0) { in CreateWriter()
/developtools/profiler/device/plugins/api/include/
Dmanager_interface.h44 …virtual bool CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventFd) = 0;
/developtools/profiler/device/plugins/native_daemon/src/
Dhook_manager.cpp207 uint32_t bufferSize = hookConfig_.smb_pages() * PAGE_BYTES; /* bufferConfig.pages() */ in CreatePluginSession() local
208 …areMemoryBlock_ = ShareMemoryAllocator::GetInstance().CreateMemoryBlockLocal(smbName_, bufferSize); in CreatePluginSession()
426 bool HookManager::CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventFd) in CreateWriter() argument
429 …RegisterWriter(std::make_shared<BufferWriter>(pluginName, VERSION, bufferSize, smbFd, eventFd, age… in CreateWriter()
/developtools/profiler/interfaces/kits/test/unittest/
Dplugin_module_api_test.cpp71 static int MemPluginReportResult(uint8_t* bufferData, uint32_t bufferSize);
83 static int SamplePluginReportResult(uint8_t* bufferData, uint32_t bufferSize);
98 int PluginModuleApiTest::MemPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in MemPluginReportResult() argument
101 return memoryPlugin->Report(bufferData, bufferSize); in MemPluginReportResult()
158 int PluginModuleApiTest::SamplePluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in SamplePluginReportResult() argument
161 return samplePlugin->Report(bufferData, bufferSize); in SamplePluginReportResult()
/developtools/profiler/interfaces/kits/
Dplugin_module_api.h58 typedef int (*PluginReportResultCallback)(uint8_t* bufferData, uint32_t bufferSize);
/developtools/smartperf_host/ide/src/trace/component/setting/
DSpRecordSetting.ts49 get bufferSize(): number { method in SpRecordSetting
142 bufferInput.value = this.bufferSize.toString();
/developtools/profiler/host/smartperf/ide/src/trace/component/setting/
DSpRecordSetting.ts49 get bufferSize(): number { method in SpRecordSetting
142 bufferInput.value = this.bufferSize.toString();
/developtools/hiperf/src/
Dperf_events.cpp1122 size_t bufferSize = maxBufferSize; in CalcBufferSize() local
1126 bufferSize = cpuMmap_.size() * mmapPages_ * pageSize_ * TIMES; in CalcBufferSize()
1127 if (bufferSize < MIN_BUFFER_SIZE) { in CalcBufferSize()
1128 bufferSize = MIN_BUFFER_SIZE; in CalcBufferSize()
1129 } else if (bufferSize > maxBufferSize) { in CalcBufferSize()
1130 bufferSize = maxBufferSize; in CalcBufferSize()
1133 HLOGD("CalcBufferSize return %zu", bufferSize); in CalcBufferSize()
1134 return bufferSize; in CalcBufferSize()

12