pub struct PerformanceMetrics { /* private fields */ }Expand description
Performance metrics collector
Implementations§
Source§impl PerformanceMetrics
impl PerformanceMetrics
Sourcepub fn record_fingerprint(&self, duration: Duration)
pub fn record_fingerprint(&self, duration: Duration)
Record fingerprint computation
Sourcepub fn record_cache_hit(&self)
pub fn record_cache_hit(&self)
Record cache hit
Sourcepub fn record_cache_miss(&self)
pub fn record_cache_miss(&self)
Record cache miss
Sourcepub fn record_cache_eviction(&self)
pub fn record_cache_eviction(&self)
Record cache eviction
Sourcepub fn record_query(&self, duration: Duration, success: bool)
pub fn record_query(&self, duration: Duration, success: bool)
Record query execution
Sourcepub fn record_bytes(&self, bytes: u64)
pub fn record_bytes(&self, bytes: u64)
Record bytes processed
Sourcepub fn record_allocation(&self)
pub fn record_allocation(&self)
Record memory allocation
Sourcepub fn record_file_processed(&self)
pub fn record_file_processed(&self)
Record file processed
Sourcepub fn record_batch(&self, file_count: u64)
pub fn record_batch(&self, file_count: u64)
Record batch processing
Sourcepub fn fingerprint_stats(&self) -> FingerprintStats
pub fn fingerprint_stats(&self) -> FingerprintStats
Get fingerprint statistics
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
Get cache statistics
Sourcepub fn query_stats(&self) -> QueryStats
pub fn query_stats(&self) -> QueryStats
Get query statistics
Sourcepub fn throughput_stats(&self) -> ThroughputStats
pub fn throughput_stats(&self) -> ThroughputStats
Get throughput statistics
Sourcepub fn export_prometheus(&self) -> String
pub fn export_prometheus(&self) -> String
Export metrics in Prometheus format
Trait Implementations§
Source§impl Clone for PerformanceMetrics
impl Clone for PerformanceMetrics
Source§fn clone(&self) -> PerformanceMetrics
fn clone(&self) -> PerformanceMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PerformanceMetrics
impl RefUnwindSafe for PerformanceMetrics
impl Send for PerformanceMetrics
impl Sync for PerformanceMetrics
impl Unpin for PerformanceMetrics
impl UnsafeUnpin for PerformanceMetrics
impl UnwindSafe for PerformanceMetrics
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more