Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <stopwatch.h>
Public Member Functions | |
StopWatch () | |
void | Start () |
void | Stop () |
uint64_t | ElapsedTime () const |
Returns time in cpu ticks. More... | |
Static Public Member Functions | |
static uint64_t | Rdtsc () |
Private Attributes | |
uint64_t | start_ |
uint64_t | total_time_ |
bool | running_ |
Utility class to measure time. This is measured using the cpu tick counter which is very low overhead but can be inaccurate if the thread is switched away. This is useful for measuring cpu time at the row batch level (too much overhead at the row granularity).
Definition at line 28 of file stopwatch.h.
|
inline |
Definition at line 30 of file stopwatch.h.
References running_, and total_time_.
|
inline |
Returns time in cpu ticks.
Definition at line 50 of file stopwatch.h.
References Rdtsc(), running_, start_, and total_time_.
Referenced by impala::GrowingTest::AggregateTest(), main(), impala::Benchmark::Measure(), Test(), and TimeParallelExecutors().
|
inlinestatic |
Definition at line 54 of file stopwatch.h.
Referenced by ElapsedTime(), Start(), and Stop().
|
inline |
Definition at line 35 of file stopwatch.h.
References Rdtsc(), running_, and start_.
Referenced by impala::GrowingTest::AggregateTest(), main(), impala::Benchmark::Measure(), Test(), impala::PartitioningThroughputTest::TestRawThroughput(), impala::PartitioningThroughputTest::TestThroughput(), and TimeParallelExecutors().
|
inline |
Definition at line 42 of file stopwatch.h.
References Rdtsc(), running_, start_, and total_time_.
Referenced by impala::GrowingTest::AggregateTest(), main(), impala::Benchmark::Measure(), Test(), impala::PartitioningThroughputTest::TestRawThroughput(), impala::PartitioningThroughputTest::TestThroughput(), and TimeParallelExecutors().
|
private |
Definition at line 65 of file stopwatch.h.
Referenced by ElapsedTime(), Start(), Stop(), and StopWatch().
|
private |
Definition at line 64 of file stopwatch.h.
Referenced by ElapsedTime(), Start(), and Stop().
|
private |
Definition at line 64 of file stopwatch.h.
Referenced by ElapsedTime(), Stop(), and StopWatch().