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 <memory>
#include <cstddef>
#include <string>
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 *labelC)
 

Variables

GTSAM_EXTERN_EXPORT std::weak_ptr< TimingOutline > gtsam::internal::gCurrentTimer
 
GTSAM_EXTERN_EXPORT std::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

◆ gttic

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

Definition at line 295 of file timing.h.

◆ gttic_

#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:240

Definition at line 245 of file timing.h.

◆ gttoc

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

Definition at line 296 of file timing.h.

◆ gttoc_

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

Definition at line 250 of file timing.h.

◆ longtic

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

Definition at line 297 of file timing.h.

◆ longtic_

#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:240

Definition at line 254 of file timing.h.

◆ longtoc

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

Definition at line 298 of file timing.h.

◆ longtoc_

#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:240

Definition at line 259 of file timing.h.

◆ tictoc_finishedIteration

#define tictoc_finishedIteration ( )    ((void)0)

Definition at line 299 of file timing.h.

◆ tictoc_getNode

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

Definition at line 276 of file timing.h.

◆ tictoc_print

#define tictoc_print ( )    ((void)0)

Definition at line 300 of file timing.h.

◆ tictoc_reset

#define tictoc_reset ( )    ((void)0)

Definition at line 301 of file timing.h.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:57