| 74 | } |
| 75 | |
| 76 | static void |
| 77 | print_header(std::ostream& os, std::string const& name, unsigned const width) |
| 78 | { |
| 79 | // clang-format off |
| 80 | auto const key_width = width - 65U; |
| 81 | os << std::string(width, '=') << "\n" |
| 82 | << cyan << "Timer: " << nocolor << name << "\n" |
| 83 | << green << std::setw(key_width) << std::left << "Label" << nocolor << " | " |
| 84 | << green << std::setw(8) << std::left << "Samples" << nocolor << " | " |
| 85 | << green << std::setw(10) << std::left << "Total" << nocolor << " | " |
| 86 | << green << std::setw(10) << std::left << "Mean" << nocolor << " | " |
| 87 | << green << std::setw(10) << std::left << "Min" << nocolor << " | " |
| 88 | << green << std::setw(10) << std::left << "Max" << nocolor << " |\n" |
| 89 | << std::string(key_width, '-') |
| 90 | << "-|----------|------------|------------|------------|------------|\n"; |
| 91 | // clang-format off |
| 92 | } |
| 93 | |
| 94 | void TimerMap::print(std::ostream& os_in) const |
| 95 | { |