MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / print_measurements

Method print_measurements

tests/framework/printers/PrettyPrinter.cpp:129–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void PrettyPrinter::print_measurements(const Profiler::MeasurementsMap &measurements)
130{
131 for (const auto &instrument : measurements)
132 {
133 *_stream << begin_color("3") << " " << instrument.first << ":";
134
135 InstrumentsStats stats(instrument.second);
136
137 *_stream << " ";
138 *_stream << "AVG=" << stats.mean() << " " << stats.max().unit();
139 if (instrument.second.size() > 1)
140 {
141 *_stream << ", STDDEV=" << arithmetic_to_string(stats.relative_standard_deviation(), 2) << " %";
142 *_stream << ", MIN=" << stats.min();
143 *_stream << ", MAX=" << stats.max();
144 *_stream << ", MEDIAN=" << stats.median().value() << " " << stats.median().unit();
145 }
146 *_stream << end_color() << "\n";
147 }
148}
149} // namespace framework
150} // namespace test
151} // namespace arm_compute

Callers

nothing calls this directly

Calls 4

arithmetic_to_stringFunction · 0.85
maxMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected