rocksdb/monitoring
Jialiang Tan 405e1a4ac6 Add block_decompress_count to PerfContext (#14557)
Summary:
Pull Request resolved: https://github.com/facebook/rocksdb/pull/14557

RocksDB's PerfContext tracks block_decompress_time but has no counter for the
number of block decompressions. The global Statistics ticker
NUMBER_BLOCK_DECOMPRESSED exists but is not accessible through PerfContext,
which is the thread-local, per-operation metric system used by benchmarks.

Add block_decompress_count as a new PerfContext counter (gated at
kEnableCount level) incremented in DecompressBlockData alongside the existing
NUMBER_BLOCK_DECOMPRESSED ticker. This enables benchmarks and applications to
observe how many blocks required decompression per operation, complementing
the existing block_read_count.

Reviewed By: anand1976

Differential Revision: D99233514

fbshipit-source-id: 40a68c1d9321f560cebdb7c30a544a0c62ae64f0
2026-04-09 22:43:16 -07:00
..
file_read_sample.h Add new heauristic 'num_collapsible_entry_reads_sampled' (#14434) 2026-03-09 16:42:41 -07:00
histogram.cc Remove extra semi colon from internal_repo_rocksdb/repo/monitoring/histogram.cc 2024-01-23 08:37:47 -08:00
histogram.h Standardize on clang-format version 18 (#13233) 2024-12-19 10:58:40 -08:00
histogram_test.cc clang format files under monitoring/ (#10857) 2022-10-24 20:45:54 -07:00
histogram_windowing.cc internal_repo_rocksdb (-8794174668376270091) (#12114) 2023-12-01 11:10:30 -08:00
histogram_windowing.h Remove 'virtual' when implied by 'override' (#12319) 2024-01-31 13:14:42 -08:00
in_memory_stats_history.cc internal_repo_rocksdb (-8794174668376270091) (#12114) 2023-12-01 11:10:30 -08:00
in_memory_stats_history.h Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
instrumented_mutex.cc Inject spurious wakeup and sleep before acquiring db mutex to expose race condition (#10291) 2022-09-12 13:55:23 -07:00
instrumented_mutex.h Fix race in options taking effect (#11929) 2023-10-12 10:05:23 -07:00
iostats_context.cc Add kCool Temperature (#14000) 2025-09-25 11:27:00 -07:00
iostats_context_imp.h Fix build error with NIOSTATS_CONTEXT (#10506) 2022-08-23 15:00:14 -07:00
iostats_context_test.cc clang format files under monitoring/ (#10857) 2022-10-24 20:45:54 -07:00
perf_context.cc Add block_decompress_count to PerfContext (#14557) 2026-04-09 22:43:16 -07:00
perf_context_imp.h Add a perf level for measuring user thread block time (#12368) 2024-02-22 12:14:53 -08:00
perf_level.cc internal_repo_rocksdb (-8794174668376270091) (#12114) 2023-12-01 11:10:30 -08:00
perf_level_imp.h clang format files under monitoring/ (#10857) 2022-10-24 20:45:54 -07:00
perf_step_timer.h Change internal headers with duplicate names (#11408) 2023-05-17 11:27:09 -07:00
persistent_stats_history.cc Group SST write in flush, compaction and db open with new stats (#11910) 2023-12-29 15:29:23 -08:00
persistent_stats_history.h Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
statistics.cc Support automated interpolation search (#14383) 2026-03-06 10:13:51 -08:00
statistics_impl.h Remove 'virtual' when implied by 'override' (#12319) 2024-01-31 13:14:42 -08:00
statistics_test.cc Remove RocksDB LITE (#11147) 2023-01-27 13:14:19 -08:00
stats_history_test.cc Support abort background compaction jobs. (#14227) 2026-01-30 05:53:04 -08:00
thread_status_impl.cc Fix and check for potential ODR violations (#14096) 2025-11-04 19:47:42 -08:00
thread_status_updater.cc Fix and check for potential ODR violations (#14096) 2025-11-04 19:47:42 -08:00
thread_status_updater.h Fix and check for potential ODR violations (#14096) 2025-11-04 19:47:42 -08:00
thread_status_updater_debug.cc Fix and check for potential ODR violations (#14096) 2025-11-04 19:47:42 -08:00
thread_status_util.cc Fix and check for potential ODR violations (#14096) 2025-11-04 19:47:42 -08:00
thread_status_util.h Fix and check for potential ODR violations (#14096) 2025-11-04 19:47:42 -08:00
thread_status_util_debug.cc Rename Env::IOActivity::kReadManifest (#13471) 2025-03-19 12:08:06 -07:00