pub struct StreamingJsonStats {Show 13 fields
pub bytes_written: u64,
pub allocations_written: u64,
pub flush_count: u32,
pub total_write_time_us: u64,
pub avg_write_speed_bps: f64,
pub peak_memory_usage: usize,
pub chunks_written: u32,
pub fields_skipped: u64,
pub buffer_reuses: u64,
pub batch_operations: u64,
pub avg_batch_size: f64,
pub batch_processing_time_us: u64,
pub intelligent_flushes: u64,
}
Expand description
Statistics for streaming JSON write operations
Fields§
§bytes_written: u64
Total bytes written
allocations_written: u64
Number of allocations written
flush_count: u32
Number of flush operations
total_write_time_us: u64
Total write time in microseconds
avg_write_speed_bps: f64
Average write speed in bytes per second
peak_memory_usage: usize
Peak memory usage during writing
chunks_written: u32
Number of chunks written
fields_skipped: u64
Number of fields skipped due to optimization
buffer_reuses: u64
Number of string buffer reuses
batch_operations: u64
Number of batch operations performed
avg_batch_size: f64
Average batch size
batch_processing_time_us: u64
Time spent on batch processing (in microseconds)
intelligent_flushes: u64
Number of intelligent flushes performed
Implementations§
Source§impl StreamingJsonStats
impl StreamingJsonStats
Sourcepub fn write_throughput(&self) -> f64
pub fn write_throughput(&self) -> f64
Calculate write throughput (allocations per second)
Sourcepub fn field_optimization_efficiency(&self) -> f64
pub fn field_optimization_efficiency(&self) -> f64
Calculate field optimization efficiency (percentage of fields skipped)
Sourcepub fn buffer_reuse_efficiency(&self) -> f64
pub fn buffer_reuse_efficiency(&self) -> f64
Calculate buffer reuse efficiency
Sourcepub fn batch_processing_efficiency(&self) -> f64
pub fn batch_processing_efficiency(&self) -> f64
Calculate batch processing efficiency
Trait Implementations§
Source§impl Clone for StreamingJsonStats
impl Clone for StreamingJsonStats
Source§fn clone(&self) -> StreamingJsonStats
fn clone(&self) -> StreamingJsonStats
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 StreamingJsonStats
impl Debug for StreamingJsonStats
Source§impl Default for StreamingJsonStats
impl Default for StreamingJsonStats
Source§fn default() -> StreamingJsonStats
fn default() -> StreamingJsonStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamingJsonStats
impl RefUnwindSafe for StreamingJsonStats
impl Send for StreamingJsonStats
impl Sync for StreamingJsonStats
impl Unpin for StreamingJsonStats
impl UnwindSafe for StreamingJsonStats
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