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

Utility class to mark an event when the object is destroyed. More...

#include <runtime-profile.h>

Collaboration diagram for impala::ScopedEvent:

Public Member Functions

 ScopedEvent (RuntimeProfile::EventSequence *event_sequence, const std::string &label)
 
 ~ScopedEvent ()
 Mark the event when the object is destroyed. More...
 

Private Member Functions

 ScopedEvent (const ScopedEvent &event)
 Disable copy constructor and assignment. More...
 
ScopedEventoperator= (const ScopedEvent &event)
 

Private Attributes

const std::string label_
 
RuntimeProfile::EventSequenceevent_sequence_
 

Detailed Description

Utility class to mark an event when the object is destroyed.

Definition at line 654 of file runtime-profile.h.

Constructor & Destructor Documentation

impala::ScopedEvent::ScopedEvent ( RuntimeProfile::EventSequence event_sequence,
const std::string &  label 
)
inline

Definition at line 656 of file runtime-profile.h.

impala::ScopedEvent::~ScopedEvent ( )
inline

Mark the event when the object is destroyed.

Definition at line 662 of file runtime-profile.h.

References event_sequence_, label_, and impala::RuntimeProfile::EventSequence::MarkEvent().

impala::ScopedEvent::ScopedEvent ( const ScopedEvent event)
private

Disable copy constructor and assignment.

Member Function Documentation

ScopedEvent& impala::ScopedEvent::operator= ( const ScopedEvent event)
private

Member Data Documentation

RuntimeProfile::EventSequence* impala::ScopedEvent::event_sequence_
private

Definition at line 672 of file runtime-profile.h.

Referenced by ~ScopedEvent().

const std::string impala::ScopedEvent::label_
private

Definition at line 671 of file runtime-profile.h.

Referenced by ~ScopedEvent().


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