| 1821 | } |
| 1822 | |
| 1823 | void 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 | |
| 1840 | RuntimeProfileBase::SummaryStatsCounter* RuntimeProfile::AddSummaryStatsCounter( |
| 1841 | const string& name, TUnit::type unit, const std::string& parent_counter_name) { |
nothing calls this directly
no test coverage detected