OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
logger::DurationTree Class Reference

Public Member Functions

 depth_ (start_depth)
 
 start_ (Clock::now())
 
 thread_id_ (thread_id)
 
void pushDurationTree (DurationTree &duration_tree)
 
const DurationrootDuration () const
 
int currentDepth () const
 
void decrementDepth ()
 
DurationTreeNodes const & durations () const
 
DurationnewDuration (DebugTimerParams const debug_timer_params)
 

Public Attributes

int const depth_
 
Clock::time_point const start_
 
ThreadId const thread_id_
 
 __pad0__: current_depth_(start_depth + bool(start_depth))
 

Private Attributes

DurationTreeNodes durations_
 
int current_depth_
 

Detailed Description

Definition at line 601 of file Logger.cpp.

Member Function Documentation

int logger::DurationTree::currentDepth ( ) const
inline

Definition at line 622 of file Logger.cpp.

References current_depth_.

622 { return current_depth_; }
void logger::DurationTree::decrementDepth ( )
inline

Definition at line 623 of file Logger.cpp.

References current_depth_.

Referenced by logger::Duration::stop().

623 { --current_depth_; }

+ Here is the caller graph for this function:

logger::DurationTree::depth_ ( start_depth  )
DurationTreeNodes const& logger::DurationTree::durations ( ) const
inline

Definition at line 624 of file Logger.cpp.

References durations_.

Referenced by logger::JsonEncoder::operator()(), logger::EraseDurationTrees::operator()(), and logger::operator<<().

624 { return durations_; }
DurationTreeNodes durations_
Definition: Logger.cpp:602

+ Here is the caller graph for this function:

Duration* logger::DurationTree::newDuration ( DebugTimerParams const  debug_timer_params)
inline

Definition at line 625 of file Logger.cpp.

References current_depth_, and durations_.

625  {
626  durations_.emplace_back(Duration(this, current_depth_++, debug_timer_params));
627  return boost::get<Duration>(&durations_.back());
628  }
DurationTreeNodes durations_
Definition: Logger.cpp:602
void logger::DurationTree::pushDurationTree ( DurationTree duration_tree)
inline

Definition at line 615 of file Logger.cpp.

References durations_.

615  {
616  durations_.emplace_back(duration_tree);
617  }
DurationTreeNodes durations_
Definition: Logger.cpp:602
const Duration& logger::DurationTree::rootDuration ( ) const
inline

Definition at line 618 of file Logger.cpp.

References CHECK, and durations_.

618  {
619  CHECK(!durations_.empty());
620  return boost::get<Duration>(durations_.front());
621  }
DurationTreeNodes durations_
Definition: Logger.cpp:602
#define CHECK(condition)
Definition: Logger.h:291
logger::DurationTree::start_ ( Clock::  now())
logger::DurationTree::thread_id_ ( thread_id  )
inline

Definition at line 614 of file Logger.cpp.

614 {}

Member Data Documentation

logger::DurationTree::__pad0__

Definition at line 612 of file Logger.cpp.

int logger::DurationTree::current_depth_
private

Definition at line 603 of file Logger.cpp.

Referenced by currentDepth(), decrementDepth(), and newDuration().

int const logger::DurationTree::depth_
DurationTreeNodes logger::DurationTree::durations_
private

Definition at line 602 of file Logger.cpp.

Referenced by durations(), newDuration(), pushDurationTree(), and rootDuration().

Clock::time_point const logger::DurationTree::start_

Definition at line 607 of file Logger.cpp.

Referenced by logger::Duration::relative_start_time().

ThreadId const logger::DurationTree::thread_id_

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