pub struct EnvironmentStats {
pub cache_size: u64,
pub cache_usage: u64,
pub n_databases: u32,
pub evictor: EvictorStatsSnapshot,
pub log: LogStatsSnapshot,
pub lock: LockStatsSnapshot,
pub txn: TxnStatsSnapshot,
pub cleaner: CleanerStatsSnapshot,
pub checkpoint: CheckpointStatsSnapshot,
pub throughput: ThroughputStatsSnapshot,
}Expand description
Aggregated statistics for the environment.
Collects statistics from all subsystems into a single snapshot
for convenient reporting and monitoring. Mirrors ’s
EnvironmentStats grouping: Cache, Evictor, Log, Lock, Txn,
Cleaner, Checkpoint, Throughput.
Fields§
§cache_size: u64Total cache size (budget) in bytes.
cache_usage: u64Current cache usage in bytes.
n_databases: u32Number of currently open databases.
evictor: EvictorStatsSnapshot§log: LogStatsSnapshot§lock: LockStatsSnapshot§txn: TxnStatsSnapshot§cleaner: CleanerStatsSnapshot§checkpoint: CheckpointStatsSnapshot§throughput: ThroughputStatsSnapshotImplementations§
Source§impl EnvironmentStats
impl EnvironmentStats
pub fn new() -> EnvironmentStats
pub fn cache_utilization_percent(&self) -> f64
pub fn is_cache_over_budget(&self) -> bool
pub fn total_eviction_runs(&self) -> u64
pub fn total_nodes_evicted(&self) -> u64
pub fn total_bytes_evicted(&self) -> u64
pub fn total_cleaning_runs(&self) -> u64
pub fn total_files_cleaned(&self) -> u64
pub fn total_checkpoint_runs(&self) -> u64
pub fn total_full_ins_checkpointed(&self) -> u64
Sourcepub fn bin_fetch_miss_ratio(&self) -> f64
pub fn bin_fetch_miss_ratio(&self) -> f64
Bin fetch miss ratio (0.0 – 1.0).
Trait Implementations§
Source§impl Clone for EnvironmentStats
impl Clone for EnvironmentStats
Source§fn clone(&self) -> EnvironmentStats
fn clone(&self) -> EnvironmentStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvironmentStats
impl Debug for EnvironmentStats
Source§impl Default for EnvironmentStats
impl Default for EnvironmentStats
Source§fn default() -> EnvironmentStats
fn default() -> EnvironmentStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnvironmentStats
impl RefUnwindSafe for EnvironmentStats
impl Send for EnvironmentStats
impl Sync for EnvironmentStats
impl Unpin for EnvironmentStats
impl UnsafeUnpin for EnvironmentStats
impl UnwindSafe for EnvironmentStats
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
Mutably borrows from an owned value. Read more