g2o
Loading...
Searching...
No Matches
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
double totalTime
 the total time of this part of the algorithm
int numCalls
 the number of calls
double minTime
double maxTime
double exponentialMovingAverage
std::string algorithmPart
 name / description of the code block
bool clockIsRunning

Detailed Description

Internal structure of the tictoc profiling.

Definition at line 44 of file tictoc.cpp.

Constructor & Destructor Documentation

◆ TicTocElement()

g2o::TicTocElement::TicTocElement ( )
inline

Definition at line 54 of file tictoc.cpp.

55 : ticTime(0.),
56 totalTime(0.),
57 numCalls(0),
58 minTime(std::numeric_limits<double>::max()),
59 maxTime(0.),
61 clockIsRunning(true) {}
double exponentialMovingAverage
Definition tictoc.cpp:50
int numCalls
the number of calls
Definition tictoc.cpp:47
double totalTime
the total time of this part of the algorithm
Definition tictoc.cpp:46
double ticTime
the time of the last tic
Definition tictoc.cpp:45

References clockIsRunning, exponentialMovingAverage, maxTime, minTime, numCalls, ticTime, and totalTime.

Referenced by operator<().

Member Function Documentation

◆ operator<()

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

Definition at line 62 of file tictoc.cpp.

62 {
63 return totalTime < other.totalTime;
64 }

References TicTocElement(), and totalTime.

Member Data Documentation

◆ algorithmPart

std::string g2o::TicTocElement::algorithmPart

name / description of the code block

Definition at line 52 of file tictoc.cpp.

Referenced by g2o::tictoc().

◆ clockIsRunning

bool g2o::TicTocElement::clockIsRunning

Definition at line 53 of file tictoc.cpp.

Referenced by TicTocElement().

◆ exponentialMovingAverage

double g2o::TicTocElement::exponentialMovingAverage

exponential moving average with alpha = 0.01

Definition at line 50 of file tictoc.cpp.

Referenced by TicTocElement().

◆ maxTime

double g2o::TicTocElement::maxTime

Definition at line 49 of file tictoc.cpp.

Referenced by TicTocElement().

◆ minTime

double g2o::TicTocElement::minTime

Definition at line 48 of file tictoc.cpp.

Referenced by TicTocElement().

◆ numCalls

int g2o::TicTocElement::numCalls

the number of calls

Definition at line 47 of file tictoc.cpp.

Referenced by TicTocElement().

◆ ticTime

double g2o::TicTocElement::ticTime

the time of the last tic

Definition at line 45 of file tictoc.cpp.

Referenced by g2o::tictoc(), and TicTocElement().

◆ totalTime

double g2o::TicTocElement::totalTime

the total time of this part of the algorithm

Definition at line 46 of file tictoc.cpp.

Referenced by operator<(), and TicTocElement().


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