pub struct DbStats {
pub pending_wal_bytes: usize,
pub segment_count: usize,
pub node_tombstone_count: usize,
pub edge_tombstone_count: usize,
pub last_compaction_ms: Option<i64>,
pub wal_sync_mode: String,
pub active_memtable_bytes: usize,
pub immutable_memtable_bytes: usize,
pub immutable_memtable_count: usize,
pub pending_flush_count: usize,
pub active_wal_generation_id: u64,
pub oldest_retained_wal_generation_id: u64,
}Expand description
Read-only runtime statistics for introspection.
Fields§
§pending_wal_bytes: usizeBytes buffered in the WAL but not yet fsynced. Always 0 in Immediate mode.
segment_count: usizeNumber of on-disk segments (excludes the in-memory memtable).
node_tombstone_count: usizeNumber of node tombstones in the memtable (pending deletes).
edge_tombstone_count: usizeNumber of edge tombstones in the memtable (pending deletes).
last_compaction_ms: Option<i64>Wall-clock timestamp (ms since epoch) of the last completed compaction,
or None if no compaction has run since open.
wal_sync_mode: StringThe WAL sync mode this database was opened with.
active_memtable_bytes: usizeEstimated bytes in the active (mutable) memtable.
immutable_memtable_bytes: usizeEstimated bytes across all immutable memtables pending flush.
immutable_memtable_count: usizeNumber of immutable memtables pending flush.
pending_flush_count: usizeNumber of flush operations currently in flight (enqueued to bg worker).
active_wal_generation_id: u64The WAL generation ID currently being written to.
oldest_retained_wal_generation_id: u64The oldest WAL generation ID still retained for recovery.
Equal to active_wal_generation_id when no immutable memtables are pending.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbStats
impl RefUnwindSafe for DbStats
impl Send for DbStats
impl Sync for DbStats
impl Unpin for DbStats
impl UnsafeUnpin for DbStats
impl UnwindSafe for DbStats
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more