pub struct MemoryStats {
pub buffer_records: usize,
pub buffer_bytes: usize,
pub cache_bytes: usize,
pub cache_blocks: usize,
pub snapshot_index_entries: usize,
pub total_revision: u64,
pub sealed_blocks: u64,
}Expand description
Top-level embedded database handle and diagnostics. Point-in-time snapshot of database memory and cache usage.
Fields§
§buffer_records: usizeRecords currently in the in-memory write buffer (not yet flushed).
buffer_bytes: usizeApproximate bytes occupied by the write buffer.
cache_bytes: usizeBytes currently resident in the LRU block cache.
cache_blocks: usizeNumber of blocks held in the LRU block cache.
snapshot_index_entries: usizeTotal Hilbert index entries across all active snapshots.
total_revision: u64Highest revision number issued so far.
sealed_blocks: u64Total sealed blocks written (cumulative, not current on-disk count).
Implementations§
Source§impl MemoryStats
impl MemoryStats
Sourcepub fn total_ram_bytes(&self) -> usize
pub fn total_ram_bytes(&self) -> usize
Estimated total process-level RAM attributed to the database.
Trait Implementations§
Source§impl Clone for MemoryStats
impl Clone for MemoryStats
Source§fn clone(&self) -> MemoryStats
fn clone(&self) -> MemoryStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnsafeUnpin for MemoryStats
impl UnwindSafe for MemoryStats
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