Image Component Library (ICL)
Classes | Namespaces | Macros
StackTimer.h File Reference
#include <ICLUtils/Macros.h>
#include <ICLUtils/Timer.h>
#include <string>
#include <cstdio>

Go to the source code of this file.

Classes

class  icl::utils::StackTimer
 Tool for benchmarking method calls. More...
 
class  icl::utils::StackTimer::StackTimerNotifier
 StackTimerNotifier constructor, USE BENCHMARK_THIS_FUNCTION-MACRO instead. More...
 

Namespaces

 icl
 undocument this line if you encounter any issues!
 
 icl::utils
 

Macros

#define BENCHMARK_THIS_SECTION(SECTION_NAME)
 
#define BENCHMARK_THIS_FUNCTION
 
#define BENCHMARK_THIS_FUNCTION_LITE
 

Macro Definition Documentation

◆ BENCHMARK_THIS_FUNCTION

#define BENCHMARK_THIS_FUNCTION
Value:
static icl::utils::StackTimer::StackTimerNotifier __notifier(__FUNCTION__); \
icl::utils::StackTimer __stacktimer(&__notifier);
StackTimerNotifier constructor, USE BENCHMARK_THIS_FUNCTION-MACRO instead.
Definition: StackTimer.h:106

◆ BENCHMARK_THIS_FUNCTION_LITE

#define BENCHMARK_THIS_FUNCTION_LITE
Value:
static icl::utils::StackTimer::StackTimerNotifier __notifier(__FUNCTION__,0,0,0,0); \
icl::utils::StackTimer __stacktimer(&__notifier);
StackTimerNotifier constructor, USE BENCHMARK_THIS_FUNCTION-MACRO instead.
Definition: StackTimer.h:106

◆ BENCHMARK_THIS_SECTION

#define BENCHMARK_THIS_SECTION (   SECTION_NAME)
Value:
static icl::utils::StackTimer::StackTimerNotifier __notifier(#SECTION_NAME); \
icl::utils::StackTimer __stacktimer(&__notifier);
StackTimerNotifier constructor, USE BENCHMARK_THIS_FUNCTION-MACRO instead.
Definition: StackTimer.h:106