| 127 | } |
| 128 | |
| 129 | void 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 |
nothing calls this directly
no test coverage detected