#[non_exhaustive]pub struct DbStats {Show 16 fields
pub latest_commit_id: u64,
pub mode: DbMode,
pub main_db_bytes: u64,
pub main_db_next_page_id: u64,
pub buffer_pool_pages: u64,
pub buffer_pool_hits: u64,
pub buffer_pool_misses: u64,
pub dirty_pages: u64,
pub tracked_readers: u32,
pub pending_tombstones: u32,
pub segments_live: u32,
pub segments_total_bytes: u64,
pub mmap_bytes_in_use: u64,
pub mk_epoch: u64,
pub free_list_pending_entries: u64,
pub spill_bytes_in_use: u64,
}Expand description
Point-in-time snapshot of database runtime metrics.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.latest_commit_id: u64Commit sequence number of the most recently committed write transaction.
mode: DbModeOperating mode of the open Db handle.
main_db_bytes: u64Size of the main database file in bytes at the time of the call.
main_db_next_page_id: u64Next page id that will be allocated by the writer (monotonic watermark).
buffer_pool_pages: u64Current number of pages resident in the buffer pool (main.db cache).
buffer_pool_hits: u64Cumulative cache hits on the buffer pool since the Db was opened.
buffer_pool_misses: u64Cumulative cache misses on the buffer pool since the Db was opened.
dirty_pages: u64Number of dirty (unflushed) pages currently in both cache classes combined.
tracked_readers: u32Number of read transactions currently registered with the Db.
pending_tombstones: u32Number of segment tombstones that are deferred pending reader drain.
segments_live: u32Number of live segments recorded in the catalog.
segments_total_bytes: u64Sum of total_bytes across all live catalog segments.
mmap_bytes_in_use: u64Bytes currently charged to decrypted mmap scratch views.
mk_epoch: u64Current master-key epoch (advances on each successful rekey_db).
free_list_pending_entries: u64Number of entries currently in the persistent free-list (both free-list rows and deferred-free pairs combined).
spill_bytes_in_use: u64Cumulative spill bytes written to the per-transaction tmp file for the currently active write transaction, or 0 if no write transaction is active.
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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