Electroneum
Classes | Namespaces | Macros | Functions
perf_timer.h File Reference
#include <string>
#include <stdio.h>
#include "misc_log_ex.h"
Include dependency graph for perf_timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tools::PerformanceTimer
 

Namespaces

 tools
 Various Tools.
 

Macros

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "perf"
 
#define PERF_TIMER_UNIT(name, unit)   tools::PerformanceTimer pt_##name(#name, unit, tools::performance_timer_log_level)
 
#define PERF_TIMER_UNIT_L(name, unit, l)   tools::PerformanceTimer pt_##name(#name, unit, l)
 
#define PERF_TIMER(name)   PERF_TIMER_UNIT(name, 1000)
 
#define PERF_TIMER_L(name, l)   PERF_TIMER_UNIT_L(name, 1000, l)
 

Functions

void tools::set_performance_timer_log_level (el::Level level)
 

Macro Definition Documentation

◆ ELECTRONEUM_DEFAULT_LOG_CATEGORY

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "perf"

◆ PERF_TIMER

#define PERF_TIMER (   name)    PERF_TIMER_UNIT(name, 1000)

◆ PERF_TIMER_L

#define PERF_TIMER_L (   name,
 
)    PERF_TIMER_UNIT_L(name, 1000, l)

◆ PERF_TIMER_UNIT

#define PERF_TIMER_UNIT (   name,
  unit 
)    tools::PerformanceTimer pt_##name(#name, unit, tools::performance_timer_log_level)

◆ PERF_TIMER_UNIT_L

#define PERF_TIMER_UNIT_L (   name,
  unit,
 
)    tools::PerformanceTimer pt_##name(#name, unit, l)