Monero
Loading...
Searching...
No Matches
Namespaces | Macros | Functions | Variables
perf_timer.cpp File Reference
#include <vector>
#include "time_helper.h"
#include "perf_timer.h"
Include dependency graph for perf_timer.cpp:

Namespaces

namespace  tools
 Various Tools.
 

Macros

#define MONERO_DEFAULT_LOG_CATEGORY   "perf"
 
#define PERF_LOG_ALWAYS(level, cat, x)    el::base::Writer(level, el::Color::Default, __FILE__, __LINE__, ELPP_FUNC, el::base::DispatchAction::FileOnlyLog).construct(cat) << x
 
#define PERF_LOG(level, cat, x)
 

Functions

uint64_t tools::get_tick_count ()
 
uint64_t tools::ticks_to_ns (uint64_t ticks)
 
void tools::set_performance_timer_log_level (el::Level level)
 

Variables

el::Level tools::performance_timer_log_level = el::Level::Info
 
static __thread std::vector< LoggingPerformanceTimer * > * tools::performance_timers = NULL
 

Macro Definition Documentation

◆ MONERO_DEFAULT_LOG_CATEGORY

#define MONERO_DEFAULT_LOG_CATEGORY   "perf"

◆ PERF_LOG

#define PERF_LOG ( level,
cat,
x )
Value:
do { \
if (ELPP->vRegistry()->allowed(level, cat)) PERF_LOG_ALWAYS(level, cat, x); \
} while(0)
#define ELPP
Definition easylogging++.h:2794
#define PERF_LOG_ALWAYS(level, cat, x)
Definition perf_timer.cpp:36

◆ PERF_LOG_ALWAYS

#define PERF_LOG_ALWAYS ( level,
cat,
x )    el::base::Writer(level, el::Color::Default, __FILE__, __LINE__, ELPP_FUNC, el::base::DispatchAction::FileOnlyLog).construct(cat) << x