MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / visit_report

Function visit_report

performance-tests/bench/common/util.cpp:189–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void visit_report(const TestController::Report& report, ReportVisitor& visitor)
190{
191 for (unsigned int node_index = 0; node_index < report.node_reports.length(); ++node_index) {
192 const Bench::TestController::NodeReport& nc_report = report.node_reports[node_index];
193
194 visitor.on_node_controller_report(ReportVisitorContext(nc_report));
195
196 for (unsigned int worker_index = 0; worker_index < nc_report.worker_reports.length(); ++worker_index) {
197 const Bench::WorkerReport& worker_report = nc_report.worker_reports[worker_index];
198
199 for (unsigned int participant_index = 0; participant_index < worker_report.process_report.participants.length(); ++participant_index) {
200 const Builder::ParticipantReport& participant_report = worker_report.process_report.participants[participant_index];
201
202 for (unsigned int subscriber_index = 0; subscriber_index < participant_report.subscribers.length(); ++subscriber_index) {
203 const Builder::SubscriberReport& subscriber_report = participant_report.subscribers[subscriber_index];
204
205 for (unsigned int datareader_index = 0; datareader_index < subscriber_report.datareaders.length(); ++datareader_index) {
206 const Builder::DataReaderReport& datareader_report = subscriber_report.datareaders[datareader_index];
207
208 visitor.on_datareader_report(ReportVisitorContext(nc_report, datareader_report));
209
210 } // datareader_report
211 } // subscriber_report
212
213 for (unsigned int publisher_index = 0; publisher_index < participant_report.publishers.length(); ++publisher_index) {
214 const Builder::PublisherReport& publisher_report = participant_report.publishers[publisher_index];
215
216 for (unsigned int datawriter_index = 0; datawriter_index < publisher_report.datawriters.length(); ++datawriter_index) {
217 const Builder::DataWriterReport& datawriter_report = publisher_report.datawriters[datawriter_index];
218
219 visitor.on_datawriter_report(ReportVisitorContext(nc_report, datawriter_report));
220
221 } // datawriter_report
222 } // publisher_report
223
224 } // participant_report
225 } // worker_report
226 } // nc_report
227
228}
229
230void gather_stats_and_tags(const TestController::Report& report,
231 std::unordered_set<std::string>& stat_names,

Callers 6

formatMethod · 0.85
formatMethod · 0.85
formatMethod · 0.85
formatMethod · 0.85
formatMethod · 0.85
gather_stats_and_tagsFunction · 0.85

Calls 5

ReportVisitorContextFunction · 0.85
lengthMethod · 0.45
on_datareader_reportMethod · 0.45
on_datawriter_reportMethod · 0.45

Tested by

no test coverage detected