mirror of https://github.com/facebook/rocksdb.git
fix compiling with `-DNPERF_CONTEXT` (#5704)
Summary: This was previously broken, as the performance context-related macro signatures in file monitoring/perf_context_imp.h deviated for the case when NPERF_CONTEXT was defined and when it was not. Update the macros for the `-DNPERF_CONTEXT` case, so it compiles. Pull Request resolved: https://github.com/facebook/rocksdb/pull/5704 Differential Revision: D16867746 fbshipit-source-id: 05539724cb1f7955ecc42828365836a677759ad9
This commit is contained in:
parent
c2404d9928
commit
a2e46eae46
|
@ -22,12 +22,15 @@ extern thread_local PerfContext perf_context;
|
|||
|
||||
#if defined(NPERF_CONTEXT)
|
||||
|
||||
#define PERF_TIMER_GUARD(metric)
|
||||
#define PERF_CONDITIONAL_TIMER_FOR_MUTEX_GUARD(metric, condition)
|
||||
#define PERF_TIMER_MEASURE(metric)
|
||||
#define PERF_TIMER_STOP(metric)
|
||||
#define PERF_TIMER_START(metric)
|
||||
#define PERF_TIMER_GUARD(metric)
|
||||
#define PERF_TIMER_GUARD_WITH_ENV(metric, env)
|
||||
#define PERF_CPU_TIMER_GUARD(metric, env)
|
||||
#define PERF_CONDITIONAL_TIMER_FOR_MUTEX_GUARD(metric, condition, stats, ticker_type)
|
||||
#define PERF_TIMER_MEASURE(metric)
|
||||
#define PERF_COUNTER_ADD(metric, value)
|
||||
#define PERF_COUNTER_BY_LEVEL_ADD(metric, value, level)
|
||||
|
||||
#else
|
||||
|
||||
|
|
Loading…
Reference in New Issue