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: u64
Total records processed
fields_processed: u64
Total fields processed
cache_hits: u64
Number of cache hits
cache_misses: u64
Number of cache misses
cache_evictions: u64
Number of cache evictions
total_processing_time_us: u64
Total processing time in microseconds
field_formatting_time_us: u64
Time spent on field formatting (microseconds)
current_memory_usage: usize
Memory usage in bytes
peak_memory_usage: usize
Peak memory usage in bytes
preformatted_fields_used: u64
Number of preformatted fields used
records_discarded: u64
Number 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