rocksdb/monitoring
Jay Zhuang 58660bf21a Use mock time for histogram_test (#7799)
Summary:
`histogram_test` uses real sleep, which depends on the test executing speed, it makes the test unstable.
Switching to using a mock time env, it can also increase the test speed (from 10100ms -> 100ms).

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

Test Plan:
run test 10 times, all passed. vs. without fix 3 out 10 test failed:
no fix: https://app.circleci.com/pipelines/github/facebook/rocksdb?branch=pull%2F7797
with fix: https://app.circleci.com/pipelines/github/facebook/rocksdb?branch=pull%2F7799

Reviewed By: pdillinger

Differential Revision: D25676948

Pulled By: jay-zhuang

fbshipit-source-id: 64c273fc299c53283138dbb213386e4b45e8bdc2
2021-01-04 13:12:40 -08: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 Use mock time for histogram_test (#7799) 2021-01-04 13:12:40 -08:00
histogram_windowing.cc Fix FilterBench when RTTI=0 (#6732) 2020-04-29 13:09:23 -07:00
histogram_windowing.h Use mock time for histogram_test (#7799) 2021-01-04 13:12:40 -08:00
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 Remove unused includes (#7604) 2020-10-28 23:22:27 -07:00
persistent_stats_history.h
statistics.cc Remove unused includes (#7604) 2020-10-28 23:22:27 -07:00
statistics.h
statistics_test.cc
stats_history_test.cc No elide constructors (#7798) 2020-12-23 16:55:53 -08: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