| /developtools/profiler/device/services/profiler_service/test/unittest/ |
| D | profiler_data_repeater_test.cpp | 43 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/ |
| D | test_main.cpp | 42 const int bufferSize = 256; in main() local 43 char buffer[bufferSize] = { 0 }; in main() 44 strerror_r(errno, buffer, bufferSize); in main()
|
| D | memory_module.cpp | 34 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/ |
| D | cpu_module.cpp | 34 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/ |
| D | diskio_module.cpp | 34 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/ |
| D | sample_module.cpp | 35 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/ |
| D | network_module.cpp | 35 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/ |
| D | process_module.cpp | 35 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/ |
| D | socket_context.cpp | 99 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/ |
| D | trace_file_reader.cpp | 98 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()
|
| D | trace_file_reader.h | 40 bool ReadData(uint8_t buffer[], uint32_t bufferSize);
|
| /developtools/profiler/device/plugins/api/src/ |
| D | command_poller.cpp | 46 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()
|
| D | plugin_manager.h | 60 bool CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventFd);
|
| D | plugin_manager.cpp | 437 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/ |
| D | ftrace_data_reader_test.cpp | 86 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/ |
| D | plugin_command_builder.cpp | 29 uint32_t bufferSize) in BuildCreateSessionCmd() argument 36 csc->add_buffer_sizes(bufferSize); in BuildCreateSessionCmd()
|
| /developtools/smartperf_host/ide/test/trace/component/setting/ |
| D | SpRecordSetting.test.ts | 32 expect(spEle.bufferSize).toEqual(64);
|
| /developtools/profiler/device/plugins/api/test/unittest/ |
| D | command_poller_test.cpp | 95 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/ |
| D | manager_interface.h | 44 …virtual bool CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventFd) = 0;
|
| /developtools/profiler/device/plugins/native_daemon/src/ |
| D | hook_manager.cpp | 207 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/ |
| D | plugin_module_api_test.cpp | 71 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/ |
| D | plugin_module_api.h | 58 typedef int (*PluginReportResultCallback)(uint8_t* bufferData, uint32_t bufferSize);
|
| /developtools/smartperf_host/ide/src/trace/component/setting/ |
| D | SpRecordSetting.ts | 49 get bufferSize(): number { method in SpRecordSetting 142 bufferInput.value = this.bufferSize.toString();
|
| /developtools/profiler/host/smartperf/ide/src/trace/component/setting/ |
| D | SpRecordSetting.ts | 49 get bufferSize(): number { method in SpRecordSetting 142 bufferInput.value = this.bufferSize.toString();
|
| /developtools/hiperf/src/ |
| D | perf_events.cpp | 1122 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()
|