Home
last modified time | relevance | path

Searched refs:dataProto (Results 1 – 12 of 12) sorted by relevance

/developtools/profiler/device/plugins/sample_plugin/src/
Dsample_plugin.cpp57 SampleData dataProto; in Report() local
62 dataProto.set_time_ms(GetTimeMS()); in Report()
63 dataProto.set_int_data(intData); in Report()
64 dataProto.set_double_data(doubleData); in Report()
66 uint32_t length = dataProto.ByteSizeLong(); in Report()
71 if (dataProto.SerializeToArray(data, length) > 0) { in Report()
/developtools/profiler/device/plugins/hidump_plugin/src/
Dhidump_plugin.cpp116 HidumpInfo dataProto; in Loop() local
126 if (!ParseHidumpInfo(dataProto, buf)) { in Loop()
129 if (dataProto.ByteSizeLong() > 0) { in Loop()
130 buffer_.resize(dataProto.ByteSizeLong()); in Loop()
131 dataProto.SerializeToArray(buffer_.data(), buffer_.size()); in Loop()
134 dataProto.clear_fps_event(); in Loop()
137 buffer_.resize(dataProto.ByteSizeLong()); in Loop()
138 dataProto.SerializeToArray(buffer_.data(), buffer_.size()); in Loop()
141 dataProto.clear_fps_event(); in Loop()
146 bool HidumpPlugin::ParseHidumpInfo(HidumpInfo& dataProto, char *buf) in ParseHidumpInfo() argument
[all …]
/developtools/profiler/device/plugins/hisysevent_plugin/src/
Dhisysevent_plugin.cpp134 HisyseventInfo dataProto; in Run() local
140 if (!ParseSyseventLineInfo(cptr, strlen(cptr), dataProto)) in Run()
144 if (dataProto.ByteSizeLong() >= BYTE_BUFFER_SIZE) { in Run()
146 protoBuffer_.resize(dataProto.ByteSizeLong()); in Run()
147 dataProto.SerializeToArray(protoBuffer_.data(), protoBuffer_.size()); in Run()
152 dataProto.clear_info(); in Run()
156 protoBuffer_.resize(dataProto.ByteSizeLong()); in Run()
157 dataProto.SerializeToArray(protoBuffer_.data(), protoBuffer_.size()); in Run()
160 dataProto.clear_info(); in Run()
165 …ol HisyseventPlugin::ParseSyseventLineInfo(const char* data, size_t len, HisyseventInfo& dataProto) in ParseSyseventLineInfo() argument
[all …]
/developtools/profiler/device/plugins/stream_plugin/src/
Dstream_plugin.cpp73 StreamData dataProto; in Loop() local
74 dataProto.set_intdata(index); in Loop()
75 dataProto.set_stringdata(std::to_string(index)); in Loop()
76 buffer_.resize(dataProto.ByteSizeLong()); in Loop()
77 dataProto.SerializeToArray(buffer_.data(), buffer_.size()); in Loop()
/developtools/profiler/device/plugins/diskio_plugin/src/
Ddiskio_data_plugin.cpp69 DiskioData dataProto; in Report() local
72 WriteDiskioData(dataProto); in Report()
76 ioEntry_->PutPluginStatsData(dataProto.mutable_statsdata()); in Report()
79 length = dataProto.ByteSizeLong(); in Report()
83 if (dataProto.SerializeToArray(data, length) > 0) { in Report()
/developtools/profiler/device/plugins/hilog_plugin/src/
Dhilog_plugin.cpp241 HilogInfo dataProto; in Run() local
243 dataProto.set_clock(0); in Run()
249 auto* info = dataProto.add_info(); in Run()
256 if (dataProto.ByteSizeLong() >= BYTE_BUFFER_SIZE) { in Run()
257 protoBuffer_.resize(dataProto.ByteSizeLong()); in Run()
258 dataProto.SerializeToArray(protoBuffer_.data(), protoBuffer_.size()); in Run()
261 dataProto.clear_info(); in Run()
269 protoBuffer_.resize(dataProto.ByteSizeLong()); in Run()
270 dataProto.SerializeToArray(protoBuffer_.data(), protoBuffer_.size()); in Run()
273 dataProto.clear_info(); in Run()
/developtools/profiler/device/plugins/network_plugin/src/
Dnetwork_plugin.cpp53 NetworkDatas dataProto; in Report() local
69 auto* info = dataProto.add_networkinfo(); in Report()
91 auto* systemInfo = dataProto.mutable_network_system_info(); in Report()
109 auto* systemInfo = dataProto.mutable_network_system_info(); in Report()
126 uint32_t length = dataProto.ByteSizeLong(); in Report()
130 if (dataProto.SerializeToArray(data, length) > 0) { in Report()
/developtools/profiler/device/plugins/hidump_plugin/include/
Dhidump_plugin.h52 bool ParseHidumpInfo(HidumpInfo& dataProto, char *buf);
/developtools/profiler/device/plugins/hisysevent_plugin/include/
Dhisysevent_plugin.h46 bool ParseSyseventLineInfo(const char* data, size_t len, HisyseventInfo &dataProto);
/developtools/profiler/device/plugins/memory_plugin/src/
Dmemory_data_plugin.cpp372 MemoryData dataProto; in Report() local
376 WriteProcesseList(dataProto); in Report()
380 WriteMeminfo(dataProto); in Report()
381 WriteZramData(dataProto); in Report()
385 WriteVmstat(dataProto); in Report()
390 auto* processinfo = dataProto.add_processesinfo(); in Report()
401 length = dataProto.ByteSizeLong(); in Report()
405 if (dataProto.SerializeToArray(data, length) > 0) { in Report()
/developtools/profiler/device/plugins/cpu_plugin/src/
Dcpu_data_plugin.cpp96 CpuData dataProto; in Report() local
99 WriteCpuUsageInfo(dataProto); in Report()
102 WriteThreadInfo(dataProto); in Report()
105 WriteProcnum(dataProto); in Report()
108 length = dataProto.ByteSizeLong(); in Report()
112 if (dataProto.SerializeToArray(data, length) > 0) { in Report()
/developtools/profiler/device/plugins/process_plugin/src/
Dprocess_data_plugin.cpp67 ProcessData dataProto; in Report() local
71 WriteProcesseList(dataProto); in Report()
74 length = dataProto.ByteSizeLong(); in Report()
78 if (dataProto.SerializeToArray(data, length) > 0) { in Report()