Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <runtime-profile.h>
Public Member Functions | |
ScopedTimer (RuntimeProfile::Counter *counter) | |
void | Stop () |
void | Start () |
void | UpdateCounter () |
void | ReleaseCounter () |
Updates the underlying counter for the final time and clears the pointer to it. More... | |
~ScopedTimer () | |
Update counter when object is destroyed. More... | |
Private Member Functions | |
ScopedTimer (const ScopedTimer &timer) | |
Disable copy constructor and assignment. More... | |
ScopedTimer & | operator= (const ScopedTimer &timer) |
Private Attributes | |
T | sw_ |
RuntimeProfile::Counter * | counter_ |
Utility class to update time elapsed when the object goes out of scope. 'T' must implement the StopWatch "interface" (Start,Stop,ElapsedTime) but we use templates not to pay for virtual function overhead.
Definition at line 705 of file runtime-profile.h.
|
inline |
Definition at line 707 of file runtime-profile.h.
|
inline |
Update counter when object is destroyed.
Definition at line 730 of file runtime-profile.h.
|
private |
Disable copy constructor and assignment.
|
private |
|
inline |
Updates the underlying counter for the final time and clears the pointer to it.
Definition at line 724 of file runtime-profile.h.
|
inline |
Definition at line 715 of file runtime-profile.h.
Referenced by impala::CrossJoinNode::GetNext(), impala::HashJoinNode::GetNext(), and impala::HashJoinNode::LeftJoinGetNext().
|
inline |
Definition at line 714 of file runtime-profile.h.
Referenced by impala::CrossJoinNode::GetNext(), impala::HashJoinNode::GetNext(), and impala::HashJoinNode::LeftJoinGetNext().
|
inline |
Definition at line 717 of file runtime-profile.h.
Referenced by impala::ScopedTimer< impala::MonotonicStopWatch >::ReleaseCounter(), and impala::ScopedTimer< impala::MonotonicStopWatch >::~ScopedTimer().
|
private |
Definition at line 741 of file runtime-profile.h.
Referenced by impala::ScopedTimer< impala::MonotonicStopWatch >::ReleaseCounter(), and impala::ScopedTimer< impala::MonotonicStopWatch >::UpdateCounter().
|
private |
Definition at line 740 of file runtime-profile.h.
Referenced by impala::ScopedTimer< impala::MonotonicStopWatch >::ScopedTimer(), impala::ScopedTimer< impala::MonotonicStopWatch >::Start(), impala::ScopedTimer< impala::MonotonicStopWatch >::Stop(), impala::ScopedTimer< impala::MonotonicStopWatch >::UpdateCounter(), and impala::ScopedTimer< impala::MonotonicStopWatch >::~ScopedTimer().