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

Method Clear

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

Source from the content-addressed store, hash-verified

1879}
1880
1881void RuntimeProfile::ChunkedTimeSeriesCounter::Clear() {
1882 lock_guard<SpinLock> l(lock_);
1883 previous_sample_count_ += last_get_count_;
1884 values_.erase(values_.begin(), values_.begin() + last_get_count_);
1885 last_get_count_ = 0;
1886}
1887
1888void RuntimeProfile::ChunkedTimeSeriesCounter::AddSampleLocked(
1889 int64_t sample, int ms_elapsed) {

Callers 1

Calls 2

eraseMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected