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

Method PrettyPrintSubclassCounters

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

Source from the content-addressed store, hash-verified

1591}
1592
1593void RuntimeProfile::PrettyPrintSubclassCounters(
1594 ostream* s, const string& prefix, Verbosity verbosity) const {
1595 PrettyPrintTimeline(s, prefix + " ");
1596
1597 {
1598 // Print time series counters.
1599 lock_guard<SpinLock> l(counter_map_lock_);
1600 for (const auto& v : time_series_counter_map_) {
1601 const TimeSeriesCounter* counter = v.second;
1602 lock_guard<SpinLock> l(counter->lock_);
1603 int num, period;
1604 const int64_t* samples = counter->GetSamplesLocked(&num, &period);
1605 PrettyPrintTimeSeries(v.first, samples, num, period, prefix, counter->unit(), s);
1606 }
1607 }
1608
1609 {
1610 lock_guard<SpinLock> l(summary_stats_map_lock_);
1611 // Print all SummaryStatsCounters as following:
1612 // <Name>: (Avg: <value> ; Min: <min_value> ; Max: <max_value> ;
1613 // Number of samples: <total>)
1614 for (const auto& v : summary_stats_map_) {
1615 v.second->PrettyPrint(prefix, v.first, verbosity, s);
1616 }
1617 }
1618}
1619
1620void RuntimeProfile::SetTExecSummary(const TExecSummary& summary) {
1621 lock_guard<SpinLock> l(t_exec_summary_lock_);

Callers

nothing calls this directly

Calls 15

PrettyPrintTimeSeriesFunction · 0.85
SubstituteFunction · 0.85
GetSamplesLockedMethod · 0.80
PrettyPrintMethod · 0.80
reserveMethod · 0.80
GetInt64Method · 0.80
transformFunction · 0.50
unitMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected