pub struct TelemetryCounters { /* private fields */ }Expand description
Always-on cumulative counters, shared across all engine components.
All increments use Ordering::Relaxed — these are statistical counters,
not synchronization primitives.
Implementations§
Source§impl TelemetryCounters
impl TelemetryCounters
Sourcepub fn increment_queries(&self)
pub fn increment_queries(&self)
Increment the query counter by one.
Sourcepub fn increment_writes(&self, row_count: u64)
pub fn increment_writes(&self, row_count: u64)
Increment the write counter by one and add row_count to the row total.
Sourcepub fn increment_errors(&self)
pub fn increment_errors(&self)
Increment the error counter by one.
Sourcepub fn increment_admin_ops(&self)
pub fn increment_admin_ops(&self)
Increment the admin operations counter by one.
Sourcepub fn snapshot(&self) -> TelemetrySnapshot
pub fn snapshot(&self) -> TelemetrySnapshot
Read all counters into a TelemetrySnapshot.
The sqlite_cache field is left at defaults — callers that need
cache status should populate it separately via
read_db_cache_status.
Trait Implementations§
Source§impl Debug for TelemetryCounters
impl Debug for TelemetryCounters
Source§impl Default for TelemetryCounters
impl Default for TelemetryCounters
Source§fn default() -> TelemetryCounters
fn default() -> TelemetryCounters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for TelemetryCounters
impl RefUnwindSafe for TelemetryCounters
impl Send for TelemetryCounters
impl Sync for TelemetryCounters
impl Unpin for TelemetryCounters
impl UnsafeUnpin for TelemetryCounters
impl UnwindSafe for TelemetryCounters
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