ed0a4c93ef
Summary: With this PR, we can measure read-amp for queries where perf_context is enabled as follows: ``` SetPerfLevel(kEnableCount); Get(1, "foo"); double read_amp = static_cast<double>(get_perf_context()->block_read_byte / get_perf_context()->get_read_bytes); SetPerfLevel(kDisable); ``` Our internal infra enables perf_context for a sampling of queries. So we'll be able to compute the read-amp for the sample set, which can give us a good estimate of read-amp. Closes https://github.com/facebook/rocksdb/pull/2749 Differential Revision: D5647240 Pulled By: ajkr fbshipit-source-id: ad73550b06990cf040cc4528fa885360f308ec12 |
||
---|---|---|
.. | ||
file_read_sample.h | ||
histogram_test.cc | ||
histogram_windowing.cc | ||
histogram_windowing.h | ||
histogram.cc | ||
histogram.h | ||
instrumented_mutex.cc | ||
instrumented_mutex.h | ||
iostats_context_imp.h | ||
iostats_context_test.cc | ||
iostats_context.cc | ||
perf_context_imp.h | ||
perf_context.cc | ||
perf_level_imp.h | ||
perf_level.cc | ||
perf_step_timer.h | ||
statistics_test.cc | ||
statistics.cc | ||
statistics.h | ||
thread_status_impl.cc | ||
thread_status_updater_debug.cc | ||
thread_status_updater.cc | ||
thread_status_updater.h | ||
thread_status_util_debug.cc | ||
thread_status_util.cc | ||
thread_status_util.h |