pub struct RenderDiagnostics {
pub phase_timings: Vec<FramePhaseSample>,
pub text_caches: TextCacheDiagnostics,
pub runtime_text_timing: RuntimeTextTimingDiagnostics,
pub widget_timings: Vec<WidgetTimingSample>,
pub 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,
}Fields§
§phase_timings: Vec<FramePhaseSample>§text_caches: TextCacheDiagnostics§runtime_text_timing: RuntimeTextTimingDiagnostics§widget_timings: Vec<WidgetTimingSample>§widget_count: usize§active_animated_widget_count: usize§animation_frame_wake_count: usize§animation_repaint_frame_count: usize§animation_transform_effect_only_frame_count: usizeImplementations§
Source§impl RenderDiagnostics
impl RenderDiagnostics
pub fn push(&mut self, phase: FramePhase, duration: Duration)
pub fn total_time_ms(&self) -> f64
Trait Implementations§
Source§impl Clone for RenderDiagnostics
impl Clone for RenderDiagnostics
Source§fn clone(&self) -> RenderDiagnostics
fn clone(&self) -> RenderDiagnostics
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 RenderDiagnostics
impl Debug for RenderDiagnostics
Source§impl Default for RenderDiagnostics
impl Default for RenderDiagnostics
Source§fn default() -> RenderDiagnostics
fn default() -> RenderDiagnostics
Returns the “default value” for a type. Read more
Source§impl PartialEq for RenderDiagnostics
impl PartialEq for RenderDiagnostics
impl StructuralPartialEq for RenderDiagnostics
Auto Trait Implementations§
impl Freeze for RenderDiagnostics
impl RefUnwindSafe for RenderDiagnostics
impl Send for RenderDiagnostics
impl Sync for RenderDiagnostics
impl Unpin for RenderDiagnostics
impl UnsafeUnpin for RenderDiagnostics
impl UnwindSafe for RenderDiagnostics
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