Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::DebugRuntimeProfile Class Reference

#include <debug-counters.h>

Collaboration diagram for impala::DebugRuntimeProfile:

Static Public Member Functions

static RuntimeProfileprofile ()
 

Detailed Description

Runtime counters have a two-phase lifecycle - creation and update. This is not convenient for debugging where we would like to add and remove counters with a minimum of boilerplate. This header adds a global debug runtime profile, and macros to update-or-create counters in one line of code. Counters created this way are not intended to remain in the code; they are a tool for identifying hotspots without having to run a full profiler. The AddCounter call adds some more overhead to each macro, and therefore they should not be used where minimal impact on performance is needed.

Definition at line 33 of file debug-counters.h.

Member Function Documentation

static RuntimeProfile& impala::DebugRuntimeProfile::profile ( )
inlinestatic

Definition at line 35 of file debug-counters.h.


The documentation for this class was generated from the following file: