Home
last modified time | relevance | path

Searched refs:pluginData (Results 1 – 18 of 18) sorted by relevance

/developtools/profiler/device/plugins/api/src/
Dbuffer_writer.cpp72 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()
Dplugin_manager.cpp415 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/
Dtrace_file_reader_test.cpp71 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 …]
Dtrace_file_writer_test.cpp118 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/
Dbuffer_write_test.cpp126 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/
Dwasm_func.cpp79 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()
Dwasm_func.h45 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/
Dwasm_func.cpp98 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()
Dwasm_func.h45 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/
Dprofiler_data_repeater.cpp51 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()
Dprofiler_service.cpp294 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/
Dplugin_service.cpp456 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/
Dshared_memory_block_test.cpp241 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/
Dprofiler_data_repeater.h33 bool PutPluginData(const ProfilerPluginDataPtr& pluginData);
/developtools/smartperf_host/trace_streamer/
DREADME.md99 * @ pluginData: 第三方插件的数据源
104 int TraceStreamer_Plugin_Out_SendData(const char* pluginData, int len, const std::string componentN…
/developtools/profiler/host/smartperf/trace_streamer/
DREADME.md99 * @ pluginData: 第三方插件的数据源
104 int TraceStreamer_Plugin_Out_SendData(const char* pluginData, int len, const std::string componentN…
/developtools/profiler/device/plugins/native_daemon/src/
Dstack_preprocess.cpp767 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/
DTraceStreamerSDK.md222 `pluginData: 第三方插件的数据源。`
230 int TraceStreamer_Plugin_Out_SendData(const char* pluginData, int len, const std::string componentN…