pub struct StoreCounts {Show 22 fields
pub apply_routed_batch_calls: u64,
pub apply_routed_batch_items: u64,
pub get_routed_calls: u64,
pub get_routed_rows: u64,
pub append_calls: u64,
pub append_rows: u64,
pub append_bytes: u64,
pub append_all_calls: u64,
pub append_all_rows: u64,
pub append_all_bytes: u64,
pub read_from_calls: u64,
pub read_from_rows: u64,
pub read_at_calls: u64,
pub read_at_rows: u64,
pub cas_calls: u64,
pub read_value_calls: u64,
pub read_stream_next_seq_calls: u64,
pub scan_page_calls: u64,
pub scan_page_rows: u64,
pub flushes: u64,
pub truncate_calls: u64,
pub truncate_rows: u64,
}Expand description
Every counter a CountingStore keeps, read at one moment.
Counters only grow, so the work between two snapshots is
StoreCounts::since of the later over the earlier.
Fields§
§apply_routed_batch_calls: u64Atomic routed batch calls, including refusals.
apply_routed_batch_items: u64Conditional replacements in successful routed batches.
get_routed_calls: u64Routed point-read calls, including errors.
get_routed_rows: u64Values returned by routed point reads.
append_calls: u64append calls.
append_rows: u64Rows written by append calls that succeeded.
append_bytes: u64Payload bytes written by append calls that succeeded.
append_all_calls: u64append_all calls.
append_all_rows: u64Rows written by append_all calls that succeeded.
append_all_bytes: u64Payload bytes written by append_all calls that succeeded.
read_from_calls: u64read_from calls.
read_from_rows: u64Rows returned by read_from.
read_at_calls: u64read_at calls.
read_at_rows: u64Rows returned by read_at: one per call that found its row.
cas_calls: u64cas calls.
read_value_calls: u64read_value calls.
read_stream_next_seq_calls: u64read_stream_next_seq calls.
scan_page_calls: u64scan_page calls.
scan_page_rows: u64Rows returned by scan_page.
flushes: u64flush calls.
truncate_calls: u64truncate_before calls.
truncate_rows: u64Rows deleted by truncate_before calls that succeeded.
Implementations§
Source§impl StoreCounts
impl StoreCounts
Sourcepub const fn since(&self, earlier: &Self) -> Self
pub const fn since(&self, earlier: &Self) -> Self
The work counted after earlier was taken.
earlier must be a snapshot of the same store taken before self.
Counters never decrease, so each difference is the work between the
two; a counter that reads lower in self answers zero rather than
wrapping.
Trait Implementations§
Source§impl Clone for StoreCounts
impl Clone for StoreCounts
impl Copy for StoreCounts
Source§impl Debug for StoreCounts
impl Debug for StoreCounts
Source§impl Default for StoreCounts
impl Default for StoreCounts
Source§impl Display for StoreCounts
One counter per line, name value, in the order of StoreCounts::named,
so two runs compare line by line.
impl Display for StoreCounts
One counter per line, name value, in the order of StoreCounts::named,
so two runs compare line by line.
impl Eq for StoreCounts
Source§impl PartialEq for StoreCounts
impl PartialEq for StoreCounts
impl StructuralPartialEq for StoreCounts
Auto Trait Implementations§
impl Freeze for StoreCounts
impl RefUnwindSafe for StoreCounts
impl Send for StoreCounts
impl Sync for StoreCounts
impl Unpin for StoreCounts
impl UnsafeUnpin for StoreCounts
impl UnwindSafe for StoreCounts
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§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.