diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-11-12 18:39:03 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-11-13 12:08:40 +0000 |
commit | 9fe8a76c59a766dabe5023f8b0bc0341b8e51891 (patch) | |
tree | 4e8a81c28ed59191be0e166ca1d1db7b88020edc /src | |
parent | Merge pull request #6097 (diff) | |
download | monero-9fe8a76c59a766dabe5023f8b0bc0341b8e51891.tar.xz |
perf_timer: fix pause/resume macros dereferencing too much
Diffstat (limited to 'src')
-rw-r--r-- | src/common/perf_timer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/perf_timer.h b/src/common/perf_timer.h index ea2237348..29a37e655 100644 --- a/src/common/perf_timer.h +++ b/src/common/perf_timer.h @@ -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() } |