| 1198 | } |
| 1199 | |
| 1200 | RuntimeProfileBase::Counter* RuntimeProfileBase::GetCounter(const string& name) const { |
| 1201 | lock_guard<SpinLock> l(counter_map_lock_); |
| 1202 | if (auto iter = counter_map_.find(name); iter != counter_map_.cend()) { |
| 1203 | return iter->second; |
| 1204 | } |
| 1205 | return NULL; |
| 1206 | } |
| 1207 | |
| 1208 | RuntimeProfileBase::SummaryStatsCounter* RuntimeProfile::GetSummaryStatsCounter( |
| 1209 | const string& name) { |