c4f5d0aa15
Summary: This PR adds public `GetStatsHistory` API to retrieve stats history in the form of an std map. The key of the map is the timestamp in microseconds when the stats snapshot is taken, the value is another std map from stats name to stats value (stored in std string). Two DBOptions are introduced: `stats_persist_period_sec` (default 10 minutes) controls the intervals between two snapshots are taken; `max_stats_history_count` (default 10) controls the max number of history snapshots to keep in memory. RocksDB will stop collecting stats snapshots if `stats_persist_period_sec` is set to 0. (This PR is the in-memory part of https://github.com/facebook/rocksdb/pull/4535) Pull Request resolved: https://github.com/facebook/rocksdb/pull/4748 Differential Revision: D13961471 Pulled By: miasantreble fbshipit-source-id: ac836d401ecb84ea92216bf9966f969dedf4ad04 |
||
---|---|---|
.. | ||
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 |