/developtools/profiler/device/plugins/api/src/ |
D | buffer_writer.cpp | 72 ProfilerPluginData pluginData; in Write() local 73 pluginData.set_name(pluginName_); in Write() 74 pluginData.set_version(pluginVersion_); in Write() 75 pluginData.set_status(0); in Write() 76 pluginData.set_data(data, size); in Write() 81 pluginData.set_clock_id(static_cast<ProfilerPluginData_ClockId>(clockId_)); in Write() 82 pluginData.set_tv_sec(ts.tv_sec); in Write() 83 pluginData.set_tv_nsec(ts.tv_nsec); in Write() 85 DoStats(pluginData.ByteSizeLong()); in Write() 86 return shareMemoryBlock_->PutMessage(pluginData, pluginName_); in Write()
|
D | plugin_manager.cpp | 415 ProfilerPluginData pluginData; in PullResult() local 416 pluginData.set_name(name); in PullResult() 417 pluginData.set_version(version); in PullResult() 418 pluginData.set_status(0); in PullResult() 419 pluginData.set_data(buffer.get(), length); in PullResult() 425 pluginData.set_clock_id(static_cast<ProfilerPluginData_ClockId>(clockId)); in PullResult() 426 pluginData.set_tv_sec(ts.tv_sec); in PullResult() 427 pluginData.set_tv_nsec(ts.tv_nsec); in PullResult() 432 writer->WriteMessage(pluginData, name); in PullResult()
|
/developtools/profiler/device/services/profiler_service/test/unittest/ |
D | trace_file_reader_test.cpp | 71 ProfilerPluginData pluginData{}; variable 72 pluginData.set_name("test_name"); 73 pluginData.set_status(i); 74 pluginData.set_data("Hello, World!"); 75 long bytes = writer->Write(pluginData); 76 EXPECT_EQ(bytes, sizeof(uint32_t) + pluginData.ByteSizeLong()); 106 ProfilerPluginData pluginData{}; variable 107 pluginData.set_name("test_name"); 108 pluginData.set_status(i); 109 pluginData.set_data("Hello, World!"); [all …]
|
D | trace_file_writer_test.cpp | 118 ProfilerPluginData pluginData; variable 119 pluginData.set_name("ABC"); 120 pluginData.set_status(0); 121 pluginData.set_data("DEF"); 122 EXPECT_GT(writer->Write(pluginData), 0);
|
/developtools/profiler/device/plugins/api/test/unittest/ |
D | buffer_write_test.cpp | 126 ProfilerPluginData pluginData; in CheckBuffer() local 127 pluginData.ParseFromArray(cmpaddr, cmpsize); in CheckBuffer() 128 const char* data = pluginData.data().c_str(); in CheckBuffer() 203 ProfilerPluginData pluginData; variable 204 pluginData.set_name("test"); 205 pluginData.set_status(1); 208 pluginData.set_clock_id(ProfilerPluginData::CLOCKID_REALTIME); 209 pluginData.set_tv_sec(ts.tv_sec); 210 pluginData.set_tv_nsec(ts.tv_nsec); 211 size = pluginData.ByteSizeLong(); [all …]
|
/developtools/profiler/host/smartperf/trace_streamer/src/rpc/ |
D | wasm_func.cpp | 79 void ThirdPary_SendDataCallback(const char* pluginData, int32_t len, int32_t componentId) in ThirdPary_SendDataCallback() argument 82 g_sendData(pluginData, len, componentId); in ThirdPary_SendDataCallback() 95 int32_t TraceStreamer_Plugin_Out_Filter(const char* pluginData, int32_t len, const std::string& com… in TraceStreamer_Plugin_Out_Filter() argument 102 return TraceStreamer_Plugin_Out_SendData(pluginData, len, componentId); in TraceStreamer_Plugin_Out_Filter() 109 int32_t TraceStreamer_Plugin_Out_SendData(const char* pluginData, int32_t len, int32_t componentId) in TraceStreamer_Plugin_Out_SendData() argument 111 ThirdPary_SendDataCallback(pluginData, len, componentId); in TraceStreamer_Plugin_Out_SendData()
|
D | wasm_func.h | 45 int32_t TraceStreamer_Plugin_Out_SendData(const char* pluginData, int32_t len, int32_t componentId); 46 int32_t TraceStreamer_Plugin_Out_Filter(const char* pluginData, int32_t len, const std::string& com…
|
/developtools/smartperf_host/trace_streamer/src/rpc/ |
D | wasm_func.cpp | 98 void ThirdPary_SendDataCallback(const char* pluginData, int32_t len, int32_t componentId) in ThirdPary_SendDataCallback() argument 101 g_sendData(pluginData, len, componentId); in ThirdPary_SendDataCallback() 114 int32_t TraceStreamer_Plugin_Out_Filter(const char* pluginData, int32_t len, const std::string& com… in TraceStreamer_Plugin_Out_Filter() argument 121 return TraceStreamer_Plugin_Out_SendData(pluginData, len, componentId); in TraceStreamer_Plugin_Out_Filter() 128 int32_t TraceStreamer_Plugin_Out_SendData(const char* pluginData, int32_t len, int32_t componentId) in TraceStreamer_Plugin_Out_SendData() argument 130 ThirdPary_SendDataCallback(pluginData, len, componentId); in TraceStreamer_Plugin_Out_SendData()
|
D | wasm_func.h | 45 int32_t TraceStreamer_Plugin_Out_SendData(const char* pluginData, int32_t len, int32_t componentId); 46 int32_t TraceStreamer_Plugin_Out_Filter(const char* pluginData, int32_t len, const std::string& com…
|
/developtools/profiler/device/services/profiler_service/src/ |
D | profiler_data_repeater.cpp | 51 bool ProfilerDataRepeater::PutPluginData(const ProfilerPluginDataPtr& pluginData) in PutPluginData() argument 55 if ((pluginData == nullptr) && (dataQueue_.size() > 0)) { in PutPluginData() 67 dataQueue_.push_back(pluginData); in PutPluginData()
|
D | profiler_service.cpp | 294 ProfilerPluginData pluginData; in CreateSession() local 295 pluginData.set_name(pluginConfigs[i].name() + "_config"); in CreateSession() 296 pluginData.set_data(pluginConfigs[i].config_data()); in CreateSession() 297 std::vector<char> msgData(pluginData.ByteSizeLong()); in CreateSession() 298 if (pluginData.SerializeToArray(msgData.data(), msgData.size()) <= 0) { in CreateSession()
|
/developtools/profiler/device/services/plugin_service/src/ |
D | plugin_service.cpp | 456 auto pluginData = std::make_shared<ProfilerPluginData>(); in ReadShareMemoryOnline() local 458 int retval = pluginData->ParseFromArray(reinterpret_cast<const char*>(data), size); in ReadShareMemoryOnline() 465 if (!context.profilerDataRepeater->PutPluginData(pluginData)) { in ReadShareMemoryOnline() 493 auto pluginData = std::make_shared<ProfilerPluginData>(); in AppendResult() local 494 pluginData->set_name(pr.status().name()); in AppendResult() 495 pluginData->set_status(0); in AppendResult() 496 pluginData->set_data(pr.data()); in AppendResult() 497 if (!pluginCtx->profilerDataRepeater->PutPluginData(pluginData)) { in AppendResult()
|
/developtools/profiler/device/services/shared_memory/test/unittest/ |
D | shared_memory_block_test.cpp | 241 auto pluginData = std::make_shared<ProfilerPluginData>(); in function() local 242 return pluginData->ParseFromArray(reinterpret_cast<const char*>(data), 6); in function() 247 auto pluginData = std::make_shared<ProfilerPluginData>(); in functionErr() local 248 return pluginData->ParseFromArray(reinterpret_cast<const char*>(data), 4096); in functionErr()
|
/developtools/profiler/device/services/profiler_service/include/ |
D | profiler_data_repeater.h | 33 bool PutPluginData(const ProfilerPluginDataPtr& pluginData);
|
/developtools/smartperf_host/trace_streamer/ |
D | README.md | 99 * @ pluginData: 第三方插件的数据源 104 int TraceStreamer_Plugin_Out_SendData(const char* pluginData, int len, const std::string componentN…
|
/developtools/profiler/host/smartperf/trace_streamer/ |
D | README.md | 99 * @ pluginData: 第三方插件的数据源 104 int TraceStreamer_Plugin_Out_SendData(const char* pluginData, int len, const std::string componentN…
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | stack_preprocess.cpp | 767 ProfilerPluginData pluginData; in Flush() local 768 pluginData.set_name("nativehook"); in Flush() 769 pluginData.set_version("1.02"); in Flush() 770 pluginData.set_status(0); in Flush() 771 pluginData.set_data(src, size); in Flush() 774 pluginData.set_clock_id(static_cast<ProfilerPluginData_ClockId>(pluginDataClockId_)); in Flush() 775 pluginData.set_tv_sec(ts.tv_sec); in Flush() 776 pluginData.set_tv_nsec(ts.tv_nsec); in Flush() 777 writer_->WriteMessage(pluginData, "nativehook"); in Flush()
|
/developtools/smartperf_host/trace_streamer/sdk/demo_sdk/doc/ |
D | TraceStreamerSDK.md | 222 `pluginData: 第三方插件的数据源。` 230 int TraceStreamer_Plugin_Out_SendData(const char* pluginData, int len, const std::string componentN…
|