solana/core
Yueh-Hsuan Chiang 0b5ed87220
(LedgerStore) Enable performance sampling in column family get() (#23834)
#### Summary of Changes
This PR enables RocksDB read side performance metrics to report to blockstore_rocksdb_read_perf.
The sampling rate is controlled by an env arg `SOLANA_METRICS_ROCKSDB_PERF_SAMPLES_IN_1K`,
specifies the number of perf samples for every 1000 operations.  The default value is set to 10, meaning
we will report 10 out of 1000 (or 1/100) reads.

The metrics are based on the RocksDB [PerfContext](https://github.com/facebook/rocksdb/blob/main/include/rocksdb/perf_context.h).
It includes many useful metrics including block read time, cache hit rate, and time spent on decompressing the block.
2022-04-01 13:13:32 -07:00
..
benches Add tx weighting stage 2022-03-17 19:31:28 -05:00
src (LedgerStore) Enable performance sampling in column family get() (#23834) 2022-04-01 13:13:32 -07:00
tests remove index hash calculation as an option (#23928) 2022-03-25 15:32:53 -05:00
.gitignore
Cargo.toml Bump version to v1.11 (#23807) 2022-03-21 17:40:50 -05:00
build.rs Remove frozen ABI modules from solana-sdk 2020-10-20 16:11:30 -07:00