Classes | Namespaces | Macros | Functions | Variables
timing.h File Reference

Timing utilities. More...

#include <gtsam/base/FastMap.h>
#include <gtsam/dllexport.h>
#include <gtsam/config.h>
#include <boost/smart_ptr/shared_ptr.hpp>
#include <boost/smart_ptr/weak_ptr.hpp>
#include <boost/version.hpp>
#include <cstddef>
#include <string>
#include <boost/timer.hpp>
#include <gtsam/base/types.h>
Include dependency graph for timing.h:

Go to the source code of this file.

Classes

class  gtsam::internal::AutoTicToc
 
class  gtsam::internal::TimingOutline
 

Namespaces

 gtsam
 traits
 
 gtsam::internal
 

Macros

#define gttic(label)   ((void)0)
 
#define gttic_(label)
 
#define gttoc(label)   ((void)0)
 
#define gttoc_(label)   label##_obj.stop()
 
#define longtic(label)   ((void)0)
 
#define longtic_(label)
 
#define longtoc(label)   ((void)0)
 
#define longtoc_(label)
 
#define tictoc_finishedIteration()   ((void)0)
 
#define tictoc_getNode(variable, label)
 
#define tictoc_print()   ((void)0)
 
#define tictoc_reset()   ((void)0)
 

Functions

size_t gtsam::internal::getTicTocID (const char *descriptionC)
 
void gtsam::internal::tic (size_t id, const char *labelC)
 
void gtsam::tictoc_finishedIteration_ ()
 
void gtsam::tictoc_print2_ ()
 
void gtsam::tictoc_print_ ()
 
void gtsam::tictoc_reset_ ()
 
void gtsam::internal::toc (size_t id, const char *label)
 

Variables

GTSAM_EXTERN_EXPORT boost::weak_ptr< TimingOutline > gtsam::internal::gCurrentTimer
 
GTSAM_EXTERN_EXPORT boost::shared_ptr< TimingOutline > gtsam::internal::gTimingRoot
 

Detailed Description

Timing utilities.

Author
Richard Roberts, Michael Kaess
Date
Oct 5, 2010
Author
Richard Roberts (extracted from Michael Kaess' timing functions)
Date
Oct 5, 2010

Definition in file timing.h.

Macro Definition Documentation

#define gttic (   label)    ((void)0)

Definition at line 280 of file timing.h.

#define gttic_ (   label)
Value:
static const size_t label##_id_tic = ::gtsam::internal::getTicTocID(#label); \
::gtsam::internal::AutoTicToc label##_obj(label##_id_tic, #label)
size_t getTicTocID(const char *descriptionC)
Definition: timing.cpp:218

Definition at line 230 of file timing.h.

#define gttoc (   label)    ((void)0)

Definition at line 281 of file timing.h.

#define gttoc_ (   label)    label##_obj.stop()

Definition at line 235 of file timing.h.

#define longtic (   label)    ((void)0)

Definition at line 282 of file timing.h.

#define longtic_ (   label)
Value:
static const size_t label##_id_tic = ::gtsam::internal::getTicTocID(#label); \
::gtsam::internal::ticInternal(label##_id_tic, #label)
size_t getTicTocID(const char *descriptionC)
Definition: timing.cpp:218

Definition at line 239 of file timing.h.

#define longtoc (   label)    ((void)0)

Definition at line 283 of file timing.h.

#define longtoc_ (   label)
Value:
static const size_t label##_id_toc = ::gtsam::internal::getTicTocID(#label); \
::gtsam::internal::tocInternal(label##_id_toc, #label)
size_t getTicTocID(const char *descriptionC)
Definition: timing.cpp:218

Definition at line 244 of file timing.h.

#define tictoc_finishedIteration ( )    ((void)0)

Definition at line 284 of file timing.h.

#define tictoc_getNode (   variable,
  label 
)
Value:
static const size_t label##_id_getnode = ::gtsam::internal::getTicTocID(#label); \
const boost::shared_ptr<const ::gtsam::internal::TimingOutline> variable = \
::gtsam::internal::gCurrentTimer.lock()->child(label##_id_getnode, #label, ::gtsam::internal::gCurrentTimer);
GTSAM_EXTERN_EXPORT boost::weak_ptr< TimingOutline > gCurrentTimer
Definition: timing.h:220
size_t getTicTocID(const char *descriptionC)
Definition: timing.cpp:218

Definition at line 261 of file timing.h.

#define tictoc_print ( )    ((void)0)

Definition at line 285 of file timing.h.

#define tictoc_reset ( )    ((void)0)

Definition at line 286 of file timing.h.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:42