MCPcopy Create free account
hub / github.com/apache/impala / AddChildLocked

Method AddChildLocked

be/src/util/runtime-profile.cc:945–956  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

943}
944
945void RuntimeProfileBase::AddChildLocked(
946 RuntimeProfileBase* child, bool indent, ChildVector::iterator insert_pos) {
947 children_lock_.DCheckLocked();
948 DCHECK(child != NULL);
949 if (child_map_.count(child->name()) > 0) {
950 // This child has already been added, so do nothing.
951 // Otherwise, the map and vector will be out of sync.
952 return;
953 }
954 child_map_[child->name()] = child;
955 children_.insert(insert_pos, make_pair(child, indent));
956}
957
958void RuntimeProfile::PrependChild(RuntimeProfileBase* child, bool indent) {
959 lock_guard<SpinLock> l(children_lock_);

Callers 1

Calls 4

DCheckLockedMethod · 0.80
countMethod · 0.45
nameMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected