pub struct RuntimeStats { /* private fields */ }Expand description
Atomic runtime counters for cache API calls.
Implementations§
Source§impl RuntimeStats
impl RuntimeStats
Sourcepub fn consume_snapshot(&self) -> RuntimeStatsSnapshot
pub fn consume_snapshot(&self) -> RuntimeStatsSnapshot
Return an immutable snapshot of the current runtime counters and reset the stats to 0.
Sourcepub fn incr_get_with_selection(&self)
pub fn incr_get_with_selection(&self)
Increment counter.
Sourcepub fn incr_eval_predicate(&self)
pub fn incr_eval_predicate(&self)
Increment counter.
Sourcepub fn incr_get_squeezed_success(&self)
pub fn incr_get_squeezed_success(&self)
Increment counter.
Sourcepub fn incr_get_squeezed_needs_io(&self)
pub fn incr_get_squeezed_needs_io(&self)
Increment counter.
Sourcepub fn incr_try_read_liquid(&self)
pub fn incr_try_read_liquid(&self)
Increment counter.
Sourcepub fn incr_hit_date32_expression(&self)
pub fn incr_hit_date32_expression(&self)
Increment counter.
Sourcepub fn incr_read_io_count(&self)
pub fn incr_read_io_count(&self)
Increment counter.
Sourcepub fn incr_write_io_count(&self)
pub fn incr_write_io_count(&self)
Increment counter.
Sourcepub fn incr_eval_predicate_on_liquid_failed(&self)
pub fn incr_eval_predicate_on_liquid_failed(&self)
Increment counter.
Sourcepub fn __incr_squeezed_decompressed_count(&self)
pub fn __incr_squeezed_decompressed_count(&self)
Increment counter.
Sourcepub fn __incr_squeezed_total_count(&self)
pub fn __incr_squeezed_total_count(&self)
Increment counter.
Sourcepub fn incr_squeeze_io_saved(&self)
pub fn incr_squeeze_io_saved(&self)
Increment counter.
Source§impl RuntimeStats
impl RuntimeStats
Sourcepub fn track_decompress_squeezed_count(&self, decompressed: usize, total: usize)
pub fn track_decompress_squeezed_count(&self, decompressed: usize, total: usize)
Track the number of decompressed Squeezed-Liquid entries.
Trait Implementations§
Source§impl Debug for RuntimeStats
impl Debug for RuntimeStats
Source§impl Default for RuntimeStats
impl Default for RuntimeStats
Source§fn default() -> RuntimeStats
fn default() -> RuntimeStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RuntimeStats
impl RefUnwindSafe for RuntimeStats
impl Send for RuntimeStats
impl Sync for RuntimeStats
impl Unpin for RuntimeStats
impl UnsafeUnpin for RuntimeStats
impl UnwindSafe for RuntimeStats
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
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request