OmniSciDB  ca0c39ec8f
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
query_state::Timer Class Reference

#include <QueryState.h>

Public Member Functions

 Timer (std::shared_ptr< QueryState > &&, Events::iterator event)
 
 Timer (Timer const &)=delete
 
Timeroperator= (Timer const &)=delete
 
 Timer (Timer &&)=default
 
Timeroperator= (Timer &&)=default
 
 ~Timer ()
 
QueryStateProxy createQueryStateProxy ()
 

Private Attributes

std::shared_ptr< QueryStatequery_state_
 
Events::iterator event_
 

Detailed Description

Definition at line 214 of file QueryState.h.

Constructor & Destructor Documentation

query_state::Timer::Timer ( std::shared_ptr< QueryState > &&  query_state,
Events::iterator  event 
)

Definition at line 142 of file QueryState.cpp.

References event_, nvtx_helpers::kQueryStateTimer, and nvtx_helpers::omnisci_range_push().

143  : query_state_(std::move(query_state)), event_(event) {
146 }
std::shared_ptr< QueryState > query_state_
Definition: QueryState.h:215
void omnisci_range_push(Category c, const char *name, const char *file)
Events::iterator event_
Definition: QueryState.h:216

+ Here is the call graph for this function:

query_state::Timer::Timer ( Timer const &  )
delete
query_state::Timer::Timer ( Timer &&  )
default
query_state::Timer::~Timer ( )

Definition at line 152 of file QueryState.cpp.

References event_, and nvtx_helpers::omnisci_range_pop().

152  {
153  event_->stop();
155 }
void omnisci_range_pop()
Events::iterator event_
Definition: QueryState.h:216

+ Here is the call graph for this function:

Member Function Documentation

QueryStateProxy query_state::Timer::createQueryStateProxy ( )

Definition at line 148 of file QueryState.cpp.

References event_, and query_state_.

Referenced by DBHandler::parse_to_ra().

148  {
149  return query_state_->createQueryStateProxy(event_);
150 }
std::shared_ptr< QueryState > query_state_
Definition: QueryState.h:215
Events::iterator event_
Definition: QueryState.h:216

+ Here is the caller graph for this function:

Timer& query_state::Timer::operator= ( Timer const &  )
delete
Timer& query_state::Timer::operator= ( Timer &&  )
default

Member Data Documentation

Events::iterator query_state::Timer::event_
private

Definition at line 216 of file QueryState.h.

Referenced by createQueryStateProxy(), Timer(), and ~Timer().

std::shared_ptr<QueryState> query_state::Timer::query_state_
private

Definition at line 215 of file QueryState.h.

Referenced by createQueryStateProxy().


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