pub struct StorageStatistics {
pub data_keys: u64,
pub data_bytes: u64,
pub history_keys: u64,
pub history_bytes: u64,
pub log_keys: u64,
pub log_bytes: u64,
pub receipt_keys: u64,
pub receipt_bytes: u64,
pub admission_waits: u64,
pub admission_wait_ms: u64,
pub checkpoints: u64,
pub checkpoint_wait_ms: u64,
}Expand description
Durable byte accounting by key family, for growth diagnosis and operator
metrics. All values are exact sums of stored key+value lengths for the
family, taken from one read view; they exclude redb’s copy-on-write slack
(compare against Store::storage_file_bytes).
Fields§
§data_keys: u64Canonical data rows (records, occurrences, postings, catalogs, …).
data_bytes: u64Total key+value bytes of canonical data rows.
history_keys: u64Retained MVCC history rows.
history_bytes: u64Total key+encoded-history bytes.
log_keys: u64Retained command-log rows (__log__/<lsn>).
log_bytes: u64Total command-log bytes.
receipt_keys: u64Retry-receipt rows (receipts plus their expiry index).
receipt_bytes: u64Total retry-receipt bytes.
admission_waits: u64Number of bounded admission-lock waits (including timed-out waits).
admission_wait_ms: u64Milliseconds spent waiting for admission-lock ownership.
checkpoints: u64Number of explicit durability checkpoints.
checkpoint_wait_ms: u64Milliseconds spent in explicit durability checkpoints.
Trait Implementations§
Source§impl Clone for StorageStatistics
impl Clone for StorageStatistics
impl Copy for StorageStatistics
Source§impl Debug for StorageStatistics
impl Debug for StorageStatistics
Source§impl Default for StorageStatistics
impl Default for StorageStatistics
impl Eq for StorageStatistics
Source§impl PartialEq for StorageStatistics
impl PartialEq for StorageStatistics
impl StructuralPartialEq for StorageStatistics
Auto Trait Implementations§
impl Freeze for StorageStatistics
impl RefUnwindSafe for StorageStatistics
impl Send for StorageStatistics
impl Sync for StorageStatistics
impl Unpin for StorageStatistics
impl UnsafeUnpin for StorageStatistics
impl UnwindSafe for StorageStatistics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.