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,
}Expand description
Statistics about layout performance.
Fields§
§tree: TreeStatsStats from tree reconciliation.
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).
Trait Implementations§
Source§impl Clone for LayoutStats
impl Clone for LayoutStats
Source§fn clone(&self) -> LayoutStats
fn clone(&self) -> LayoutStats
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 LayoutStats
impl Debug for LayoutStats
Source§impl Default for LayoutStats
impl Default for LayoutStats
Source§fn default() -> LayoutStats
fn default() -> LayoutStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayoutStats
impl RefUnwindSafe for LayoutStats
impl Send for LayoutStats
impl Sync for LayoutStats
impl Unpin 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