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

Method AddSummaryStatsCounter

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

Source from the content-addressed store, hash-verified

1838}
1839
1840RuntimeProfileBase::SummaryStatsCounter* RuntimeProfile::AddSummaryStatsCounter(
1841 const string& name, TUnit::type unit, const std::string& parent_counter_name) {
1842 lock_guard<SpinLock> l(summary_stats_map_lock_);
1843 if (summary_stats_map_.find(name) != summary_stats_map_.end()) {
1844 return summary_stats_map_[name];
1845 }
1846 SummaryStatsCounter* counter = pool_->Add(new SummaryStatsCounter(unit));
1847 summary_stats_map_[name] = counter;
1848 return counter;
1849}
1850
1851void RuntimeProfile::TimeSeriesCounter::AddSample(int ms_elapsed) {
1852 lock_guard<SpinLock> l(lock_);

Callers 3

InitProfileFunction · 0.80
TESTFunction · 0.80
InstantiateMethod · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
AddMethod · 0.45

Tested by 1

TESTFunction · 0.64