rocksdb/monitoring
Yanqin Jin ab202e8d72 Add a new stats level to exclude tickers (#7329)
Summary:
Currently, application may pass a statistics object to db but later
wants to reduce stats tracking overhead by setting stats level to
kExceptHistogramOrTimers (the current lowest level). Tickers will still
be incremented, causing up to 1% CPU. We can add a new lowest stats
level `kExceptTickers` to disable ticker incrementing as well, thus
reducing CPU cycles spent on tickers.

Test Plan (devserver):
```
make check
make clean
DEBUG_LEVEL=0 make db_bench
./db_bench -perf_level=1 -stats_level=0 -statistics -benchmarks=fillseq,readrandom -duration=120
```

Measure CPU util (%) before and after change:
CPU util by rocksdb::RecordTick: 1.1 vs (<0.1)

Pull Request resolved: https://github.com/facebook/rocksdb/pull/7329

Reviewed By: pdillinger

Differential Revision: D23434014

Pulled By: riversand963

fbshipit-source-id: 72ff0f02a192ac476d4b0044b9f37fd4a22ff0d4
2020-09-04 23:25:03 -07:00
..
file_read_sample.h
histogram.cc Fix FilterBench when RTTI=0 (#6732) 2020-04-29 13:09:23 -07:00
histogram.h
histogram_test.cc
histogram_windowing.cc Fix FilterBench when RTTI=0 (#6732) 2020-04-29 13:09:23 -07:00
histogram_windowing.h
in_memory_stats_history.cc
in_memory_stats_history.h
instrumented_mutex.cc
instrumented_mutex.h
iostats_context.cc
iostats_context_imp.h
iostats_context_test.cc
perf_context.cc
perf_context_imp.h
perf_level.cc
perf_level_imp.h
perf_step_timer.h
persistent_stats_history.cc
persistent_stats_history.h
statistics.cc Add a new stats level to exclude tickers (#7329) 2020-09-04 23:25:03 -07:00
statistics.h
statistics_test.cc
stats_dump_scheduler.cc Add EnvTestWithParam::OptionsTest to the ASSERT_STATUS_CHECKED passes (#7283) 2020-08-20 19:18:35 -07:00
stats_dump_scheduler.h Introduce a global StatsDumpScheduler for stats dumping (#7223) 2020-08-14 20:12:44 -07:00
stats_dump_scheduler_test.cc Add test function MockTimeEnv.SleepForMicroseconds() (#7293) 2020-08-21 11:34:37 -07:00
stats_history_test.cc Add test function MockTimeEnv.SleepForMicroseconds() (#7293) 2020-08-21 11:34:37 -07:00
thread_status_impl.cc
thread_status_updater.cc
thread_status_updater.h
thread_status_updater_debug.cc Replace reinterpret_cast with static_cast_with_check (#7067) 2020-07-02 19:25:41 -07:00
thread_status_util.cc
thread_status_util.h
thread_status_util_debug.cc