rocksdb/monitoring
Andrew Kryczka ed0a4c93ef perf_context measure user bytes read
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
2017-08-18 11:43:33 -07:00
..
file_read_sample.h Change RocksDB License 2017-07-15 16:11:23 -07:00
histogram_test.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
histogram_windowing.cc Replace dynamic_cast<> 2017-07-28 16:27:16 -07:00
histogram_windowing.h Change RocksDB License 2017-07-15 16:11:23 -07:00
histogram.cc approximate histogram stats to save cpu 2017-08-11 13:13:12 -07:00
histogram.h Change RocksDB License 2017-07-15 16:11:23 -07:00
instrumented_mutex.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
instrumented_mutex.h Change RocksDB License 2017-07-15 16:11:23 -07:00
iostats_context_imp.h Change RocksDB License 2017-07-15 16:11:23 -07:00
iostats_context_test.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
iostats_context.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
perf_context_imp.h Change RocksDB License 2017-07-15 16:11:23 -07:00
perf_context.cc perf_context measure user bytes read 2017-08-18 11:43:33 -07:00
perf_level_imp.h Change RocksDB License 2017-07-15 16:11:23 -07:00
perf_level.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
perf_step_timer.h Change RocksDB License 2017-07-15 16:11:23 -07:00
statistics_test.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
statistics.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
statistics.h Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_impl.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_updater_debug.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_updater.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_updater.h Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_util_debug.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_util.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
thread_status_util.h Change RocksDB License 2017-07-15 16:11:23 -07:00