MCPcopy Create free account
hub / github.com/LBANN/lbann / print_header

Function print_header

src/utils/timer_map.cpp:76–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76static void
77print_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
94void TimerMap::print(std::ostream& os_in) const
95{

Callers 1

printMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected