pub struct LayoutStats {
pub tree: TreeStats,
pub taffy_created: usize,
pub taffy_reused: usize,
pub layout_hits: usize,
pub layout_misses: usize,
pub paint_cache_hits: usize,
pub paint_cache_misses: usize,
pub paint_culled: usize,
pub layout_time_ms: f32,
pub paint_time_ms: f32,
}Expand description
Statistics about layout performance.
Fields§
§tree: TreeStats§taffy_created: usizeTaffy nodes created this frame.
taffy_reused: usizeTaffy nodes reused this frame.
layout_hits: usizeLayout cache hits.
layout_misses: usizeLayout cache misses.
paint_cache_hits: usizePaint cache hits (repaint boundaries).
paint_cache_misses: usizePaint cache misses (repaint boundaries).
paint_culled: usizeNodes skipped due to clip/viewport culling.
layout_time_ms: f32Total time for layout+paint (ms).
paint_time_ms: f32Total time spent in the paint pass only (ms).
Trait Implementations§
Source§impl Clone for LayoutStats
impl Clone for LayoutStats
Source§impl Debug for LayoutStats
impl Debug for LayoutStats
Auto Trait Implementations§
impl Freeze for LayoutStats
impl RefUnwindSafe for LayoutStats
impl Send for LayoutStats
impl Sync for LayoutStats
impl Unpin for LayoutStats
impl UnsafeUnpin for LayoutStats
impl UnwindSafe for LayoutStats
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