diff --git a/monitoring/perf_context_imp.h b/monitoring/perf_context_imp.h index d67654914..a30a2eb9c 100644 --- a/monitoring/perf_context_imp.h +++ b/monitoring/perf_context_imp.h @@ -23,11 +23,13 @@ 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_CONDITIONAL_TIMER_FOR_MUTEX_GUARD(metric, condition, stats, \ + ticker_type) #define PERF_TIMER_MEASURE(metric) #define PERF_TIMER_STOP(metric) #define PERF_TIMER_START(metric) #define PERF_COUNTER_ADD(metric, value) +#define PERF_COUNTER_BY_LEVEL_ADD(metric, value, level) #else diff --git a/port/BUILD b/port/BUILD index cd653849e..ff9ed9886 100644 --- a/port/BUILD +++ b/port/BUILD @@ -11,6 +11,7 @@ PLATFORM_DEFINES = select({ "ROCKSDB_RANGESYNC_PRESENT", "ROCKSDB_SCHED_GETCPU_PRESENT", "rocksdb_shared_EXPORTS", + "NPERF_CONTEXT", ], "//:osx": [ "OS_MACOSX", @@ -18,9 +19,11 @@ PLATFORM_DEFINES = select({ "HAVE_SSE42", "ROCKSDB_LIB_IO_POSIX", "rocksdb_shared_EXPORTS", + "NPERF_CONTEXT", ], "//:windows": [ "OS_WIN", + "NPERF_CONTEXT", ], "//conditions:default": [], })