-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose rocksdb cumulative statistics and histograms
This exposes rocksdb statistics (tickers and histograms) to allow rust-rocksdb users to introspect individual metrics. Additionally, this PR also adds `set_statistics_level(StatsLevel)` to `Options` for fine-grain control over which stats are collected. Tickers and histograms are available in `rocksdb::statistics::{Ticker, Histogram}` with the necessary helpers to convert the ticker type to the corresponding rocksdb name (and vice-versa via the `FromStr` trait). Test Plan: - New test added in test_db.rs - Sanity check unit tests in statistics.rs
- Loading branch information
1 parent
8fccdf5
commit 1678156
Showing
4 changed files
with
862 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.