Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <runtime-profile.h>
Public Member Functions | |
DerivedCounter (TUnit::type unit, const DerivedCounterFunction &counter_fn) | |
virtual int64_t | value () const |
virtual void | Add (int64_t delta) |
void | BitOr (int64_t delta) |
Use this to update if the counter is a bitmap. More... | |
virtual void | Set (int64_t value) |
virtual void | Set (double value) |
virtual double | double_value () const |
TUnit::type | unit () const |
Protected Attributes | |
AtomicInt< int64_t > | value_ |
TUnit::type | unit_ |
Private Attributes | |
DerivedCounterFunction | counter_fn_ |
A DerivedCounter also has a name and unit, but the value is computed. Do not call Set() and Add().
Definition at line 165 of file runtime-profile.h.
|
inline |
Definition at line 167 of file runtime-profile.h.
|
inlinevirtualinherited |
Reimplemented in impala::RuntimeProfile::AveragedCounter, and impala::RuntimeProfile::HighWaterMarkCounter.
Definition at line 93 of file runtime-profile.h.
References impala::RuntimeProfile::Counter::value_.
Referenced by impala::Sorter::CreateMerger(), impala::BufferedBlockMgr::FindBufferForBlock(), impala::BufferedBlockMgr::GetUnusedBlock(), impala::DiskIoMgr::ReadRange(), impala::ScopedCounter::ScopedCounter(), impala::Sorter::SortRun(), impala::ThreadCounterMeasurement::Stop(), impala::TEST(), impala::ScopedTimer< impala::MonotonicStopWatch >::UpdateCounter(), impala::BufferedBlockMgr::WriteComplete(), impala::BufferedBlockMgr::WriteUnpinnedBlock(), and impala::ScopedCounter::~ScopedCounter().
|
inlineinherited |
Use this to update if the counter is a bitmap.
Definition at line 98 of file runtime-profile.h.
References impala::RuntimeProfile::Counter::value_.
Referenced by impala::DiskIoMgr::ReadRange().
|
inlinevirtualinherited |
Definition at line 110 of file runtime-profile.h.
References impala::RuntimeProfile::Counter::value_.
Referenced by impala::TEST(), and impala::RuntimeProfile::AveragedCounter::UpdateCounter().
|
inlinevirtualinherited |
Reimplemented in impala::RuntimeProfile::AveragedCounter, and impala::RuntimeProfile::HighWaterMarkCounter.
Definition at line 102 of file runtime-profile.h.
References impala::RuntimeProfile::Counter::value(), and impala::RuntimeProfile::Counter::value_.
Referenced by impala::BufferedBlockMgr::Init(), impala::PlanFragmentExecutor::SendReport(), impala::HdfsScanNode::StopAndFinalizeCounters(), impala::PeriodicCounterUpdater::StopBucketingCounters(), and impala::TEST().
|
inlinevirtualinherited |
Reimplemented in impala::RuntimeProfile::AveragedCounter.
Definition at line 104 of file runtime-profile.h.
References impala::RuntimeProfile::Counter::value(), and impala::RuntimeProfile::Counter::value_.
|
inlineinherited |
Definition at line 114 of file runtime-profile.h.
References impala::RuntimeProfile::Counter::unit_.
Referenced by impala::ScopedTimer< impala::MonotonicStopWatch >::ScopedTimer(), impala::TEST(), and impala::RuntimeProfile::UnitsPerSecond().
|
inlinevirtual |
Reimplemented from impala::RuntimeProfile::Counter.
Definition at line 171 of file runtime-profile.h.
References counter_fn_.
Referenced by impala::TEST().
|
private |
Definition at line 176 of file runtime-profile.h.
Referenced by value().
|
protectedinherited |
Definition at line 120 of file runtime-profile.h.
Referenced by impala::RuntimeProfile::Counter::unit(), and impala::RuntimeProfile::AveragedCounter::UpdateCounter().
|
protectedinherited |
Definition at line 119 of file runtime-profile.h.
Referenced by impala::RuntimeProfile::Counter::Add(), impala::RuntimeProfile::HighWaterMarkCounter::Add(), impala::RuntimeProfile::Counter::BitOr(), impala::RuntimeProfile::Counter::double_value(), impala::RuntimeProfile::Counter::Set(), impala::RuntimeProfile::HighWaterMarkCounter::Set(), impala::RuntimeProfile::HighWaterMarkCounter::TryAdd(), impala::RuntimeProfile::AveragedCounter::UpdateCounter(), and impala::RuntimeProfile::Counter::value().