Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
gtsam::internal::TimingOutline Class Reference

#include <timing.h>

Public Member Functions

GTSAM_EXPORT const boost::shared_ptr< TimingOutline > & child (size_t child, const std::string &label, const boost::weak_ptr< TimingOutline > &thisPtr)
 
GTSAM_EXPORT void finishedIteration ()
 
double max () const
 max time, in seconds More...
 
double mean () const
 mean self time, in seconds More...
 
double min () const
 min time, in seconds More...
 
GTSAM_EXPORT void print (const std::string &outline="") const
 
GTSAM_EXPORT void print2 (const std::string &outline="", const double parentTotal=-1.0) const
 
double secs () const
 time taken, in seconds, including children More...
 
double self () const
 self time only, in seconds More...
 
GTSAM_EXPORT void tic ()
 
GTSAM_EXPORT size_t time () const
 time taken, including children More...
 
GTSAM_EXPORT TimingOutline (const std::string &label, size_t myId)
 Constructor. More...
 
GTSAM_EXPORT void toc ()
 
double wall () const
 wall time, in seconds More...
 

Protected Types

typedef FastMap< size_t, boost::shared_ptr< TimingOutline > > ChildMap
 

Protected Member Functions

void add (size_t usecs, size_t usecsWall)
 

Protected Attributes

ChildMap children_
 subtrees More...
 
size_t id_
 
std::string label_
 
size_t lastChildOrder_
 
size_t myOrder_
 
size_t n_
 
boost::weak_ptr< TimingOutlineparent_
 parent pointer More...
 
double t2_
 cache the t_i^2 More...
 
size_t t_
 
boost::timer timer_
 
gtsam::ValueWithDefault< bool, false > timerActive_
 
size_t tIt_
 
size_t tMax_
 
size_t tMin_
 
size_t tWall_
 

Friends

GTSAM_EXPORT friend void toc (size_t id, const char *label)
 

Detailed Description

Timing Entry, arranged in a tree

Definition at line 145 of file timing.h.

Member Typedef Documentation

typedef FastMap<size_t, boost::shared_ptr<TimingOutline> > gtsam::internal::TimingOutline::ChildMap
protected

Definition at line 161 of file timing.h.

Constructor & Destructor Documentation

gtsam::internal::TimingOutline::TimingOutline ( const std::string &  label,
size_t  myId 
)

Constructor.

Definition at line 56 of file timing.cpp.

Member Function Documentation

void gtsam::internal::TimingOutline::add ( size_t  usecs,
size_t  usecsWall 
)
protected

Definition at line 46 of file timing.cpp.

const boost::shared_ptr< TimingOutline > & gtsam::internal::TimingOutline::child ( size_t  child,
const std::string &  label,
const boost::weak_ptr< TimingOutline > &  thisPtr 
)

Definition at line 144 of file timing.cpp.

void gtsam::internal::TimingOutline::finishedIteration ( )

Definition at line 206 of file timing.cpp.

double gtsam::internal::TimingOutline::max ( ) const
inline

max time, in seconds

Definition at line 183 of file timing.h.

double gtsam::internal::TimingOutline::mean ( ) const
inline

mean self time, in seconds

Definition at line 184 of file timing.h.

double gtsam::internal::TimingOutline::min ( ) const
inline

min time, in seconds

Definition at line 182 of file timing.h.

void gtsam::internal::TimingOutline::print ( const std::string &  outline = "") const

Definition at line 79 of file timing.cpp.

void gtsam::internal::TimingOutline::print2 ( const std::string &  outline = "",
const double  parentTotal = -1.0 
) const

Definition at line 100 of file timing.cpp.

double gtsam::internal::TimingOutline::secs ( ) const
inline

time taken, in seconds, including children

Definition at line 179 of file timing.h.

double gtsam::internal::TimingOutline::self ( ) const
inline

self time only, in seconds

Definition at line 180 of file timing.h.

void gtsam::internal::TimingOutline::tic ( )

Definition at line 159 of file timing.cpp.

size_t gtsam::internal::TimingOutline::time ( ) const

time taken, including children

Definition at line 65 of file timing.cpp.

void gtsam::internal::TimingOutline::toc ( )

Definition at line 175 of file timing.cpp.

double gtsam::internal::TimingOutline::wall ( ) const
inline

wall time, in seconds

Definition at line 181 of file timing.h.

Friends And Related Function Documentation

GTSAM_EXPORT friend void toc ( size_t  id,
const char *  label 
)
friend

Definition at line 246 of file timing.cpp.

Member Data Documentation

ChildMap gtsam::internal::TimingOutline::children_
protected

subtrees

Definition at line 162 of file timing.h.

size_t gtsam::internal::TimingOutline::id_
protected

Definition at line 147 of file timing.h.

std::string gtsam::internal::TimingOutline::label_
protected

Definition at line 157 of file timing.h.

size_t gtsam::internal::TimingOutline::lastChildOrder_
protected

Definition at line 156 of file timing.h.

size_t gtsam::internal::TimingOutline::myOrder_
protected

Definition at line 155 of file timing.h.

size_t gtsam::internal::TimingOutline::n_
protected

Definition at line 154 of file timing.h.

boost::weak_ptr<TimingOutline> gtsam::internal::TimingOutline::parent_
protected

parent pointer

Definition at line 160 of file timing.h.

double gtsam::internal::TimingOutline::t2_
protected

cache the t_i^2

Definition at line 150 of file timing.h.

size_t gtsam::internal::TimingOutline::t_
protected

Definition at line 148 of file timing.h.

boost::timer gtsam::internal::TimingOutline::timer_
protected

Definition at line 167 of file timing.h.

gtsam::ValueWithDefault<bool,false> gtsam::internal::TimingOutline::timerActive_
protected

Definition at line 168 of file timing.h.

size_t gtsam::internal::TimingOutline::tIt_
protected

Definition at line 151 of file timing.h.

size_t gtsam::internal::TimingOutline::tMax_
protected

Definition at line 152 of file timing.h.

size_t gtsam::internal::TimingOutline::tMin_
protected

Definition at line 153 of file timing.h.

size_t gtsam::internal::TimingOutline::tWall_
protected

Definition at line 149 of file timing.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:38