| 970 | } |
| 971 | |
| 972 | void RuntimeProfileBase::GetChildren(vector<RuntimeProfileBase*>* children) const { |
| 973 | children->clear(); |
| 974 | lock_guard<SpinLock> l(children_lock_); |
| 975 | for (const auto& entry : children_) children->push_back(entry.first); |
| 976 | } |
| 977 | |
| 978 | void RuntimeProfileBase::GetAllChildren(vector<RuntimeProfileBase*>* children) { |
| 979 | lock_guard<SpinLock> l(children_lock_); |