g2o
Public Member Functions | Public Attributes | List of all members
g2o::TicTocElement Struct Reference

Internal structure of the tictoc profiling. More...

Public Member Functions

 TicTocElement ()
 
bool operator< (const TicTocElement &other) const
 

Public Attributes

double ticTime
 the time of the last tic More...
 
double totalTime
 the total time of this part of the algorithm More...
 
int numCalls
 the number of calls More...
 
double minTime
 
double maxTime
 
double exponentialMovingAverage
 exponential moving average with alpha = 0.01 More...
 
std::string algorithmPart
 name / description of the code block More...
 
bool clockIsRunning
 

Detailed Description

Internal structure of the tictoc profiling.

Definition at line 43 of file tictoc.cpp.

Constructor & Destructor Documentation

g2o::TicTocElement::TicTocElement ( )
inline

Definition at line 53 of file tictoc.cpp.

53  :
54  ticTime(0.), totalTime(0.), numCalls(0),
55  minTime(std::numeric_limits<double>::max()),
57  clockIsRunning(true)
58  {}
double totalTime
the total time of this part of the algorithm
Definition: tictoc.cpp:46
int numCalls
the number of calls
Definition: tictoc.cpp:47
double exponentialMovingAverage
exponential moving average with alpha = 0.01
Definition: tictoc.cpp:50
double ticTime
the time of the last tic
Definition: tictoc.cpp:45

Member Function Documentation

bool g2o::TicTocElement::operator< ( const TicTocElement other) const
inline

Definition at line 59 of file tictoc.cpp.

References totalTime.

60  {
61  return totalTime < other.totalTime;
62  }
double totalTime
the total time of this part of the algorithm
Definition: tictoc.cpp:46

Member Data Documentation

std::string g2o::TicTocElement::algorithmPart

name / description of the code block

Definition at line 51 of file tictoc.cpp.

Referenced by g2o::tictoc().

bool g2o::TicTocElement::clockIsRunning

Definition at line 52 of file tictoc.cpp.

double g2o::TicTocElement::exponentialMovingAverage

exponential moving average with alpha = 0.01

Definition at line 50 of file tictoc.cpp.

double g2o::TicTocElement::maxTime

Definition at line 49 of file tictoc.cpp.

double g2o::TicTocElement::minTime

Definition at line 48 of file tictoc.cpp.

int g2o::TicTocElement::numCalls

the number of calls

Definition at line 47 of file tictoc.cpp.

double g2o::TicTocElement::ticTime

the time of the last tic

Definition at line 45 of file tictoc.cpp.

Referenced by g2o::tictoc().

double g2o::TicTocElement::totalTime

the total time of this part of the algorithm

Definition at line 46 of file tictoc.cpp.

Referenced by operator<().


The documentation for this struct was generated from the following file: