OmniSciDB  a5dc49c757
 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 213 of file QueryState.h.

Constructor & Destructor Documentation

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

Definition at line 133 of file QueryState.cpp.

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

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

+ Here is the call graph for this function:

query_state::Timer::Timer ( Timer const &  )
delete
query_state::Timer::Timer ( Timer &&  )
default
Timer< TimeT >::~Timer ( )

Definition at line 143 of file QueryState.cpp.

References event_, and nvtx_helpers::omnisci_range_pop().

143  {
144  event_->stop();
146 }
void omnisci_range_pop()
Events::iterator event_
Definition: QueryState.h:215

+ Here is the call graph for this function:

Member Function Documentation

QueryStateProxy Timer< TimeT >::createQueryStateProxy ( )

Definition at line 139 of file QueryState.cpp.

References event_, and query_state_.

Referenced by DBHandler::parse_to_ra(), and DBHandler::processCalciteRequest().

139  {
140  return query_state_->createQueryStateProxy(event_);
141 }
std::shared_ptr< QueryState > query_state_
Definition: QueryState.h:214
Events::iterator event_
Definition: QueryState.h:215

+ 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 215 of file QueryState.h.

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

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

Definition at line 214 of file QueryState.h.

Referenced by createQueryStateProxy().


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