| 961 | } |
| 962 | |
| 963 | RuntimeProfile* RuntimeProfile::CreateChild( |
| 964 | const string& name, bool indent, bool prepend, bool add_default_counters) { |
| 965 | lock_guard<SpinLock> l(children_lock_); |
| 966 | DCHECK(child_map_.find(name) == child_map_.end()); |
| 967 | RuntimeProfile* child = Create(pool_, name, add_default_counters); |
| 968 | AddChildLocked(child, indent, prepend ? children_.begin() : children_.end()); |
| 969 | return child; |
| 970 | } |
| 971 | |
| 972 | void RuntimeProfileBase::GetChildren(vector<RuntimeProfileBase*>* children) const { |
| 973 | children->clear(); |