mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #6128
9fe8a76c
perf_timer: fix pause/resume macros dereferencing too much (moneromooo-monero)
This commit is contained in:
commit
5558919e56
1 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ void set_performance_timer_log_level(el::Level level);
|
|||
#define PERF_TIMER_START_UNIT(name, unit) std::unique_ptr<tools::LoggingPerformanceTimer> PERF_TIMER_NAME(name)(new tools::LoggingPerformanceTimer(#name, "perf." MONERO_DEFAULT_LOG_CATEGORY, unit, el::Level::Info))
|
||||
#define PERF_TIMER_START(name) PERF_TIMER_START_UNIT(name, 1000000)
|
||||
#define PERF_TIMER_STOP(name) do { PERF_TIMER_NAME(name).reset(NULL); } while(0)
|
||||
#define PERF_TIMER_PAUSE(name) PERF_TIMER_NAME(name)->pause()
|
||||
#define PERF_TIMER_RESUME(name) PERF_TIMER_NAME(name)->resume()
|
||||
#define PERF_TIMER_PAUSE(name) PERF_TIMER_NAME(name).pause()
|
||||
#define PERF_TIMER_RESUME(name) PERF_TIMER_NAME(name).resume()
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue