pub struct SceneStatistics {Show 23 fields
pub detail_mode: SceneStatisticsDetailMode,
pub viewport: Size,
pub total_widget_count: usize,
pub active_animated_widget_count: usize,
pub animation_frame_wake_count: usize,
pub animation_repaint_frame_count: usize,
pub animation_transform_effect_only_frame_count: usize,
pub dirty_region_count: usize,
pub dirty_regions: Vec<DirtyRegion>,
pub dirty_area: f32,
pub dirty_coverage: f32,
pub command_count: usize,
pub command_breakdown: Vec<(String, usize)>,
pub repaint_boundary_count: usize,
pub scene_layer_count: usize,
pub stack_surface_count: usize,
pub overlay_layer_count: usize,
pub layer_update_count: usize,
pub layer_update_breakdown: Vec<(String, usize)>,
pub text_command_count: usize,
pub image_command_count: usize,
pub clip_command_count: usize,
pub transform_command_count: usize,
}Fields§
§detail_mode: SceneStatisticsDetailMode§viewport: Size§total_widget_count: usize§active_animated_widget_count: usize§animation_frame_wake_count: usize§animation_repaint_frame_count: usize§animation_transform_effect_only_frame_count: usize§dirty_region_count: usize§dirty_regions: Vec<DirtyRegion>§dirty_area: f32§dirty_coverage: f32§command_count: usize§command_breakdown: Vec<(String, usize)>§repaint_boundary_count: usizeCurrent repaint granularity as observed by the runtime today.
During the layer-boundary transition this still tracks emitted scene
layers, because the runtime has not yet decoupled explicit repaint
boundaries from per-widget SceneLayer emission.
scene_layer_count: usize§stack_surface_count: usize§overlay_layer_count: usize§layer_update_count: usize§layer_update_breakdown: Vec<(String, usize)>§text_command_count: usize§image_command_count: usize§clip_command_count: usize§transform_command_count: usizeImplementations§
Source§impl SceneStatistics
impl SceneStatistics
pub fn with_animation_counters( self, active_animated_widget_count: usize, animation_frame_wake_count: usize, animation_repaint_frame_count: usize, animation_transform_effect_only_frame_count: usize, ) -> Self
pub fn from_frame(frame: &SceneFrame, total_widget_count: usize) -> Self
pub fn minimal( frame: &SceneFrame, total_widget_count: usize, detail_mode: SceneStatisticsDetailMode, ) -> Self
pub fn from_frame_with_mode( frame: &SceneFrame, total_widget_count: usize, detail_mode: SceneStatisticsDetailMode, ) -> Self
Trait Implementations§
Source§impl Clone for SceneStatistics
impl Clone for SceneStatistics
Source§impl Debug for SceneStatistics
impl Debug for SceneStatistics
Source§impl PartialEq for SceneStatistics
impl PartialEq for SceneStatistics
impl StructuralPartialEq for SceneStatistics
Auto Trait Implementations§
impl Freeze for SceneStatistics
impl RefUnwindSafe for SceneStatistics
impl Send for SceneStatistics
impl Sync for SceneStatistics
impl Unpin for SceneStatistics
impl UnsafeUnpin for SceneStatistics
impl UnwindSafe for SceneStatistics
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