| 1215 | } |
| 1216 | |
| 1217 | void RuntimeProfileBase::GetCounters(const string& name, vector<Counter*>* counters) { |
| 1218 | Counter* c = GetCounter(name); |
| 1219 | if (c != NULL) counters->push_back(c); |
| 1220 | |
| 1221 | lock_guard<SpinLock> l(children_lock_); |
| 1222 | for (int i = 0; i < children_.size(); ++i) { |
| 1223 | children_[i].first->GetCounters(name, counters); |
| 1224 | } |
| 1225 | } |
| 1226 | |
| 1227 | RuntimeProfile::EventSequence* RuntimeProfile::GetEventSequence(const string& name) const |
| 1228 | { |