MCPcopy Create free account
hub / github.com/apache/impala / PrintChildCounters

Method PrintChildCounters

be/src/util/runtime-profile.cc:1823–1838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1821}
1822
1823void RuntimeProfileBase::PrintChildCounters(const string& prefix, Verbosity verbosity,
1824 const string& counter_name, const CounterMap& counter_map,
1825 const ChildCounterMap& child_counter_map, ostream* s) {
1826 ostream& stream = *s;
1827 ChildCounterMap::const_iterator itr = child_counter_map.find(counter_name);
1828 if (itr != child_counter_map.end()) {
1829 const set<string>& child_counters = itr->second;
1830 for (const string& child_counter: child_counters) {
1831 CounterMap::const_iterator iter = counter_map.find(child_counter);
1832 if (iter == counter_map.end()) continue;
1833 iter->second->PrettyPrint(prefix, iter->first, verbosity, &stream);
1834 RuntimeProfileBase::PrintChildCounters(
1835 prefix + " ", verbosity, child_counter, counter_map, child_counter_map, s);
1836 }
1837 }
1838}
1839
1840RuntimeProfileBase::SummaryStatsCounter* RuntimeProfile::AddSummaryStatsCounter(
1841 const string& name, TUnit::type unit, const std::string& parent_counter_name) {

Callers

nothing calls this directly

Calls 3

PrettyPrintMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected