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

Method UpdateChildCountersLocked

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

Source from the content-addressed store, hash-verified

242}
243
244void RuntimeProfileBase::UpdateChildCountersLocked(const unique_lock<SpinLock>& lock,
245 const ChildCounterMap& src) {
246 DCHECK(lock.mutex() == &counter_map_lock_ && lock.owns_lock());
247 // Merge all new parent->child edges into the map. This assumes that all 'src' maps
248 // provided are consistent, i.e. one child does not have multiple parents.
249 ChildCounterMap::const_iterator child_counter_src_itr;
250 for (const auto& entry : src) {
251 set<string>* child_counters =
252 FindOrInsert(&child_counter_map_, entry.first, set<string>());
253 child_counters->insert(entry.second.begin(), entry.second.end());
254 }
255}
256
257RuntimeProfile* RuntimeProfile::Create(
258 ObjectPool* pool, const string& name, bool add_default_counters) {

Callers

nothing calls this directly

Calls 6

FindOrInsertFunction · 0.85
owns_lockMethod · 0.80
mutexMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected