-#define IOSTATS_TIMER_GUARD(metric) \
- PerfStepTimer iostats_step_timer_ ## metric(&(iostats_context.metric)); \
- iostats_step_timer_ ## metric.Start();
+#define IOSTATS_CPU_TIMER_GUARD(metric, clock) \
+ PerfStepTimer iostats_step_timer_##metric( \
+ &(iostats_context.metric), clock, true, \
+ PerfLevel::kEnableTimeAndCPUTimeExceptForMutex); \
+ iostats_step_timer_##metric.Start();
+
+#define IOSTATS_SET_DISABLE(disable) (iostats_context.disable_iostats = disable)