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

Method AddSample

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

Source from the content-addressed store, hash-verified

1849}
1850
1851void RuntimeProfile::TimeSeriesCounter::AddSample(int ms_elapsed) {
1852 lock_guard<SpinLock> l(lock_);
1853 int64_t sample = sample_fn_();
1854 AddSampleLocked(sample, ms_elapsed);
1855}
1856
1857const int64_t* RuntimeProfile::TimeSeriesCounter::GetSamplesLockedForSend(
1858 int* num_samples, int* period) {

Callers 4

TESTFunction · 0.45
TEST_PFunction · 0.45
AddSampleLockedMethod · 0.45
UpdateLoopMethod · 0.45

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.36
TEST_PFunction · 0.36