pub struct StyleStats {
pub computations: u64,
pub cache_hits: u64,
pub computation_time_ms: f32,
pub avg_computation_time_ms: f32,
pub layout_conversions: u64,
pub inheritance_operations: u64,
pub cache_size: usize,
}
Expand description
Performance statistics for the style engine
Fields§
§computations: u64
Number of style computations performed
cache_hits: u64
Number of cache hits
computation_time_ms: f32
Total time spent computing styles (ms)
avg_computation_time_ms: f32
Average computation time per style (ms)
layout_conversions: u64
Number of layout style conversions
inheritance_operations: u64
Number of style inheritance operations
cache_size: usize
Current cache size
Trait Implementations§
Source§impl Clone for StyleStats
impl Clone for StyleStats
Source§fn clone(&self) -> StyleStats
fn clone(&self) -> StyleStats
Returns a copy 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 StyleStats
impl Debug for StyleStats
Source§impl Default for StyleStats
impl Default for StyleStats
Source§fn default() -> StyleStats
fn default() -> StyleStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StyleStats
impl RefUnwindSafe for StyleStats
impl Send for StyleStats
impl Sync for StyleStats
impl Unpin for StyleStats
impl UnwindSafe for StyleStats
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> Event for T
impl<T> Event for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to Any for downcasting (mutable)
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Get the event type name
Source§impl<T> Props for T
impl<T> Props for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert to mutable Any for downcasting