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

Method UpdateAggregatedFromInstance

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

Source from the content-addressed store, hash-verified

352}
353
354void AggregatedRuntimeProfile::UpdateAggregatedFromInstance(
355 RuntimeProfile* other, int idx, bool add_default_counters) {
356 {
357 lock_guard<SpinLock> l(input_profile_name_lock_);
358 DCHECK(!input_profile_names_.empty())
359 << "Update() can only be called on root of averaged profile tree";
360 input_profile_names_[idx] = other->name();
361 }
362
363 UpdateAggregatedFromInstanceRecursive(other, idx, add_default_counters);
364
365 // Recursively compute times on the whole tree.
366 ComputeTimeInProfile();
367}
368
369void AggregatedRuntimeProfile::UpdateAggregatedFromInstanceRecursive(
370 RuntimeProfile* other, int idx, bool add_default_counters) {

Callers 4

UpdateExecStatsMethod · 0.80
GetStatusReportMethod · 0.80
TESTFunction · 0.80
SetUpMethod · 0.80

Calls 2

emptyMethod · 0.45
nameMethod · 0.45

Tested by 2

TESTFunction · 0.64
SetUpMethod · 0.64