pub struct StreamingFieldProcessorStats {
pub records_processed: u64,
pub fields_processed: u64,
pub cache_hits: u64,
pub cache_misses: u64,
pub cache_evictions: u64,
pub total_processing_time_us: u64,
pub field_formatting_time_us: u64,
pub current_memory_usage: usize,
pub peak_memory_usage: usize,
pub preformatted_fields_used: u64,
pub records_discarded: u64,
}Expand description
Statistics for streaming field processing
Fields§
§records_processed: u64Total records processed
fields_processed: u64Total fields processed
cache_hits: u64Number of cache hits
cache_misses: u64Number of cache misses
cache_evictions: u64Number of cache evictions
total_processing_time_us: u64Total processing time in microseconds
field_formatting_time_us: u64Time spent on field formatting (microseconds)
current_memory_usage: usizeMemory usage in bytes
peak_memory_usage: usizePeak memory usage in bytes
preformatted_fields_used: u64Number of preformatted fields used
records_discarded: u64Number of records immediately discarded
Implementations§
Source§impl StreamingFieldProcessorStats
impl StreamingFieldProcessorStats
Sourcepub fn cache_hit_rate(&self) -> f64
pub fn cache_hit_rate(&self) -> f64
Calculate cache hit rate as percentage
Sourcepub fn processing_throughput(&self) -> f64
pub fn processing_throughput(&self) -> f64
Calculate processing throughput (records per second)
Sourcepub fn field_processing_efficiency(&self) -> f64
pub fn field_processing_efficiency(&self) -> f64
Calculate field processing efficiency
Sourcepub fn memory_efficiency(&self) -> f64
pub fn memory_efficiency(&self) -> f64
Calculate memory efficiency (bytes per record)
Trait Implementations§
Source§impl Clone for StreamingFieldProcessorStats
impl Clone for StreamingFieldProcessorStats
Source§fn clone(&self) -> StreamingFieldProcessorStats
fn clone(&self) -> StreamingFieldProcessorStats
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 moreSource§impl Debug for StreamingFieldProcessorStats
impl Debug for StreamingFieldProcessorStats
Source§impl Default for StreamingFieldProcessorStats
impl Default for StreamingFieldProcessorStats
Source§fn default() -> StreamingFieldProcessorStats
fn default() -> StreamingFieldProcessorStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamingFieldProcessorStats
impl RefUnwindSafe for StreamingFieldProcessorStats
impl Send for StreamingFieldProcessorStats
impl Sync for StreamingFieldProcessorStats
impl Unpin for StreamingFieldProcessorStats
impl UnwindSafe for StreamingFieldProcessorStats
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