pub struct BinaryHtmlStats {
pub allocations_processed: u64,
pub total_html_size: usize,
pub template_render_time_ms: u64,
pub data_processing_time_ms: u64,
pub peak_memory_usage: usize,
pub buffer_flushes: u32,
pub total_processing_time_ms: u64,
pub avg_processing_speed: f64,
pub memory_efficiency: f64,
}
Expand description
Statistics for binary HTML write operations
Fields§
§allocations_processed: u64
Total allocations processed
total_html_size: usize
Total HTML size generated
template_render_time_ms: u64
Template rendering time in milliseconds
data_processing_time_ms: u64
Data processing time in milliseconds
peak_memory_usage: usize
Peak memory usage during processing
buffer_flushes: u32
Number of buffer flushes performed
total_processing_time_ms: u64
Total processing time in milliseconds
avg_processing_speed: f64
Average processing speed (allocations per second)
memory_efficiency: f64
Memory efficiency (bytes processed per MB memory used)
Implementations§
Source§impl BinaryHtmlStats
impl BinaryHtmlStats
Sourcepub fn processing_throughput(&self) -> f64
pub fn processing_throughput(&self) -> f64
Calculate processing throughput
Sourcepub fn memory_efficiency_ratio(&self) -> f64
pub fn memory_efficiency_ratio(&self) -> f64
Calculate memory efficiency ratio
Trait Implementations§
Source§impl Clone for BinaryHtmlStats
impl Clone for BinaryHtmlStats
Source§fn clone(&self) -> BinaryHtmlStats
fn clone(&self) -> BinaryHtmlStats
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 BinaryHtmlStats
impl Debug for BinaryHtmlStats
Source§impl Default for BinaryHtmlStats
impl Default for BinaryHtmlStats
Source§fn default() -> BinaryHtmlStats
fn default() -> BinaryHtmlStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BinaryHtmlStats
impl RefUnwindSafe for BinaryHtmlStats
impl Send for BinaryHtmlStats
impl Sync for BinaryHtmlStats
impl Unpin for BinaryHtmlStats
impl UnwindSafe for BinaryHtmlStats
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