pub struct DBStats {
pub free_page_n: usize,
pub pending_page_n: usize,
pub free_alloc: usize,
pub freelist_in_use: usize,
pub tx_n: usize,
pub open_tx_n: usize,
pub tx_stats: TxStats,
}Expand description
Stats represents statistics about the database.
Fields§
§free_page_n: usizetotal number of free pages on the freelist
pending_page_n: usizetotal number of pending pages on the freelist
free_alloc: usizetotal bytes allocated in free pages
freelist_in_use: usizetotal bytes used by the freelist
tx_n: usizetotal number of started read transactions
open_tx_n: usizenumber of currently open read transactions
tx_stats: TxStatsglobal, ongoing stats.
Trait Implementations§
source§impl AddAssign for Stats
impl AddAssign for Stats
source§fn add_assign(&mut self, other: Stats)
fn add_assign(&mut self, other: Stats)
Performs the
+= operation. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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