pub struct FieldParserStats {
pub total_fields_parsed: u64,
pub fields_skipped: u64,
pub cache_hits: u64,
pub cache_misses: u64,
pub total_parse_time_us: u64,
pub time_saved_us: u64,
}
Expand description
Statistics about field parsing performance
Fields§
§total_fields_parsed: u64
Total number of fields parsed
fields_skipped: u64
Number of fields skipped due to selective parsing
cache_hits: u64
Number of cache hits
cache_misses: u64
Number of cache misses
total_parse_time_us: u64
Total time spent parsing fields (in microseconds)
time_saved_us: u64
Time saved by skipping fields (estimated, in microseconds)
Implementations§
Source§impl FieldParserStats
impl FieldParserStats
Sourcepub fn cache_hit_rate(&self) -> f64
pub fn cache_hit_rate(&self) -> f64
Calculate cache hit rate as percentage
Sourcepub fn parsing_efficiency(&self) -> f64
pub fn parsing_efficiency(&self) -> f64
Calculate parsing efficiency (fields skipped / total fields)
Sourcepub fn avg_parse_time_per_field_us(&self) -> f64
pub fn avg_parse_time_per_field_us(&self) -> f64
Get average parse time per field (in microseconds)
Trait Implementations§
Source§impl Clone for FieldParserStats
impl Clone for FieldParserStats
Source§fn clone(&self) -> FieldParserStats
fn clone(&self) -> FieldParserStats
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 FieldParserStats
impl Debug for FieldParserStats
Source§impl Default for FieldParserStats
impl Default for FieldParserStats
Source§fn default() -> FieldParserStats
fn default() -> FieldParserStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FieldParserStats
impl RefUnwindSafe for FieldParserStats
impl Send for FieldParserStats
impl Sync for FieldParserStats
impl Unpin for FieldParserStats
impl UnwindSafe for FieldParserStats
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