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

Method print

src/utils/timer_map.cpp:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void TimerMap::print(std::ostream& os_in) const
95{
96 std::ostringstream oss;
97 unsigned const width = output_width(os_in);
98 bool const with_color = is_good_terminal(os_in);
99 std::ostream& os = (with_color ? os_in : oss);
100
101 print_header(os, this->key(), width);
102 this->print_impl(os, width, 0);
103 if (!with_color)
104 os_in << strip_ansi_csis(oss.str());
105
106 // print_footer()
107 os_in << std::string(width, '=') << "\n";
108}
109
110void TimerMap::print_impl(std::ostream& os,
111 unsigned const width,

Callers 10

test_imagenet_nodeMethod · 0.80
print_schemaMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
test_jagFunction · 0.80

Calls 3

print_implMethod · 0.95
output_widthFunction · 0.85
print_headerFunction · 0.85

Tested by 4

test_imagenet_nodeMethod · 0.64
mainFunction · 0.64
mainFunction · 0.64
test_jagFunction · 0.64