pub struct WriteSetStats {
pub page_limit: usize,
pub byte_limit: usize,
pub current_dirty_pages: usize,
pub current_dirty_bytes: usize,
pub dirty_pages_high_water: usize,
pub dirty_bytes_high_water: usize,
pub cap_refusals: u64,
}Expand description
Identity-bound digest of a complete SQLite main-database image.
The digest covers the page size, exact file length, page numbers, and all logical database pages. SQLite’s reserved lock-byte page is deliberately excluded because it is process-lock state rather than database content. Dirty-write-set accounting since the write-set ceiling was installed.
Distinct from page-cache residency: PageCachePeakSnapshot answers “how
many pages were resident”, which is a memory bound. This answers “how large
did one live transaction’s caller-staged write set become”, which is the
ceiling a bounded builder enforces and what a residency peak cannot
substitute for. It does not count the union of pages rewritten by separate
transactions.
cap_refusals is the honest counterpart to the ceiling: a bound that was
never approached and a bound that refused work both leave the same
high-water mark, and only this distinguishes them.
Fields§
§page_limit: usizeMaximum distinct dirty pages admitted to one transaction.
byte_limit: usizeExact byte ceiling implied by page_limit * page_size.
current_dirty_pages: usizeDistinct dirty pages currently staged by the active transaction.
current_dirty_bytes: usizeExact bytes currently staged by the active transaction.
dirty_pages_high_water: usizeLargest live caller-staged dirty-page count observed in any one transaction since the ceiling was installed.
This is a window-wide maximum of per-transaction cardinalities, not the union of distinct pages touched by all transactions in the window.
dirty_bytes_high_water: usizeLargest staged byte count observed since the ceiling was installed.
cap_refusals: u64Pre-admission cap refusals since the ceiling was installed.
Trait Implementations§
Source§impl Clone for WriteSetStats
impl Clone for WriteSetStats
Source§fn clone(&self) -> WriteSetStats
fn clone(&self) -> WriteSetStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WriteSetStats
Source§impl Debug for WriteSetStats
impl Debug for WriteSetStats
Source§impl Default for WriteSetStats
impl Default for WriteSetStats
Source§fn default() -> WriteSetStats
fn default() -> WriteSetStats
impl Eq for WriteSetStats
Source§impl PartialEq for WriteSetStats
impl PartialEq for WriteSetStats
impl StructuralPartialEq for WriteSetStats
Auto Trait Implementations§
impl Freeze for WriteSetStats
impl RefUnwindSafe for WriteSetStats
impl Send for WriteSetStats
impl Sync for WriteSetStats
impl Unpin for WriteSetStats
impl UnsafeUnpin for WriteSetStats
impl UnwindSafe for WriteSetStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.