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, ) -> SceneStatistics
pub fn from_frame( frame: &SceneFrame, total_widget_count: usize, ) -> SceneStatistics
pub fn minimal( frame: &SceneFrame, total_widget_count: usize, detail_mode: SceneStatisticsDetailMode, ) -> SceneStatistics
pub fn from_frame_with_mode( frame: &SceneFrame, total_widget_count: usize, detail_mode: SceneStatisticsDetailMode, ) -> SceneStatistics
Trait Implementations§
Source§impl Clone for SceneStatistics
impl Clone for SceneStatistics
Source§fn clone(&self) -> SceneStatistics
fn clone(&self) -> SceneStatistics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.