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

const GTSAM_EXPORT std::shared_ptr< TimingOutline > & child (size_t child, const std::string &label, const std::weak_ptr< TimingOutline > &thisPtr)
 
GTSAM_EXPORT void finishedIteration ()
 
GTSAM_EXPORT void print (const std::string &outline="") const
 
GTSAM_EXPORT void print2 (const std::string &outline="", const double parentTotal=-1.0) const
 
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 ()
 

Protected Types

typedef FastMap< size_t, std::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_
 
std::weak_ptr< TimingOutlineparent_
 parent pointer More...
 
double t2_
 cache the $ \sum t_i^2 $ More...
 
size_t t_
 
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 148 of file timing.h.

Member Typedef Documentation

◆ ChildMap

Definition at line 164 of file timing.h.

Constructor & Destructor Documentation

◆ TimingOutline()

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

Constructor.

Definition at line 57 of file timing.cpp.

Member Function Documentation

◆ add()

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

Definition at line 47 of file timing.cpp.

◆ child()

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

Definition at line 154 of file timing.cpp.

◆ finishedIteration()

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

Definition at line 227 of file timing.cpp.

◆ print()

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

Definition at line 86 of file timing.cpp.

◆ print2()

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

Definition at line 109 of file timing.cpp.

◆ tic()

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

Definition at line 173 of file timing.cpp.

◆ time()

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

time taken, including children

Definition at line 68 of file timing.cpp.

◆ toc()

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

Definition at line 192 of file timing.cpp.

Friends And Related Function Documentation

◆ toc

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

Definition at line 276 of file timing.cpp.

Member Data Documentation

◆ children_

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

subtrees

Definition at line 165 of file timing.h.

◆ id_

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

Definition at line 150 of file timing.h.

◆ label_

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

Definition at line 160 of file timing.h.

◆ lastChildOrder_

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

Definition at line 159 of file timing.h.

◆ myOrder_

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

Definition at line 158 of file timing.h.

◆ n_

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

Definition at line 157 of file timing.h.

◆ parent_

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

parent pointer

Definition at line 163 of file timing.h.

◆ t2_

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

cache the $ \sum t_i^2 $

Definition at line 153 of file timing.h.

◆ t_

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

Definition at line 151 of file timing.h.

◆ tIt_

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

Definition at line 154 of file timing.h.

◆ tMax_

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

Definition at line 155 of file timing.h.

◆ tMin_

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

Definition at line 156 of file timing.h.

◆ tWall_

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

Definition at line 152 of file timing.h.


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


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:16:36