#include <timing.h>
Public Member Functions | |
GTSAM_EXPORT const std::shared_ptr< TimingOutline > & | child (size_t child, const std::string &label, const std::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, 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< TimingOutline > | parent_ |
parent pointer More... | |
double | t2_ |
cache the 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) |
|
protected |
gtsam::internal::TimingOutline::TimingOutline | ( | const std::string & | label, |
size_t | myId | ||
) |
Constructor.
Definition at line 56 of file timing.cpp.
Definition at line 46 of file timing.cpp.
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 153 of file timing.cpp.
void gtsam::internal::TimingOutline::finishedIteration | ( | ) |
Definition at line 226 of file timing.cpp.
|
inline |
|
inline |
|
inline |
void gtsam::internal::TimingOutline::print | ( | const std::string & | outline = "" | ) | const |
Definition at line 85 of file timing.cpp.
void gtsam::internal::TimingOutline::print2 | ( | const std::string & | outline = "" , |
const double | parentTotal = -1.0 |
||
) | const |
Definition at line 108 of file timing.cpp.
|
inline |
|
inline |
void gtsam::internal::TimingOutline::tic | ( | ) |
Definition at line 172 of file timing.cpp.
size_t gtsam::internal::TimingOutline::time | ( | ) | const |
time taken, including children
Definition at line 67 of file timing.cpp.
void gtsam::internal::TimingOutline::toc | ( | ) |
Definition at line 191 of file timing.cpp.
|
inline |
|
friend |
Definition at line 275 of file timing.cpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |