| 976 | } |
| 977 | |
| 978 | void RuntimeProfileBase::GetAllChildren(vector<RuntimeProfileBase*>* children) { |
| 979 | lock_guard<SpinLock> l(children_lock_); |
| 980 | for (ChildMap::iterator i = child_map_.begin(); i != child_map_.end(); ++i) { |
| 981 | children->push_back(i->second); |
| 982 | i->second->GetAllChildren(children); |
| 983 | } |
| 984 | } |
| 985 | |
| 986 | int RuntimeProfileBase::num_counters() const { |
| 987 | std::lock_guard<SpinLock> l(counter_map_lock_); |
no test coverage detected