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

Method AddChild

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

Source from the content-addressed store, hash-verified

923}
924
925void RuntimeProfile::AddChild(
926 RuntimeProfileBase* child, bool indent, RuntimeProfile* loc) {
927 lock_guard<SpinLock> l(children_lock_);
928 ChildVector::iterator insert_pos;
929 if (loc == NULL) {
930 insert_pos = children_.end();
931 } else {
932 bool found = false;
933 for (ChildVector::iterator it = children_.begin(); it != children_.end(); ++it) {
934 if (it->first == loc) {
935 insert_pos = it + 1;
936 found = true;
937 break;
938 }
939 }
940 DCHECK(found) << "Invalid loc";
941 }
942 AddChildLocked(child, indent, insert_pos);
943}
944
945void RuntimeProfileBase::AddChildLocked(
946 RuntimeProfileBase* child, bool indent, ChildVector::iterator insert_pos) {

Callers 15

ClientRequestStateMethod · 0.80
ExecMethod · 0.80
ExecAndFetchMethod · 0.80
IcebergMergeSinkMethod · 0.80
PrepareMethod · 0.80
MultiTableSinkMethod · 0.80
CreateTreeMethod · 0.80
AggregationNodeBaseMethod · 0.80

Calls 2

endMethod · 0.45
beginMethod · 0.45

Tested by 1

TESTFunction · 0.64