pub struct MemoryStats {
pub total_errors_created: u32,
pub total_contexts_created: u64,
pub string_intern_hits: usize,
pub string_intern_misses: usize,
pub estimated_memory_saved: usize,
}Expand description
Memory usage statistics for error handling
Fields§
§total_errors_created: u32Total number of Yoshi error instances created since application start
total_contexts_created: u64Total number of context objects created across all errors
string_intern_hits: usizeNumber of string interning cache hits for memory optimization
string_intern_misses: usizeNumber of string interning cache misses requiring new allocations
estimated_memory_saved: usizeEstimated bytes saved through string interning and optimization
Trait Implementations§
Source§impl Debug for MemoryStats
impl Debug for MemoryStats
Source§impl Default for MemoryStats
impl Default for MemoryStats
Source§fn default() -> MemoryStats
fn default() -> MemoryStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnwindSafe for MemoryStats
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