pub struct WindowPerformanceSnapshot {Show 15 fields
pub window_id: WindowId,
pub frame_index: u64,
pub total_time_ms: f64,
pub frame_interval_ms: Option<f64>,
pub phase_timings: Vec<FramePhaseSample>,
pub presentation_latency: PresentationLatencyDiagnostics,
pub renderer_submission: RendererSubmissionDiagnostics,
pub text_caches: TextCacheDiagnostics,
pub text_cache_deltas: TextCacheDeltaDiagnostics,
pub runtime_text_timing: RuntimeTextTimingDiagnostics,
pub widget_timings: Vec<WidgetTimingSample>,
pub command_dispatches: Vec<CommandDispatchSample>,
pub invalidations: Vec<InvalidationTraceSample>,
pub retained_packet_hotspot: Option<RetainedPacketHotspotDiagnostics>,
pub scene: SceneStatistics,
}Fields§
§window_id: WindowId§frame_index: u64§total_time_ms: f64§frame_interval_ms: Option<f64>Wall time between completed host frames, including pacing and idle time. This measures host frame cadence, not GPU execution or physical scanout. Unavailable for the first frame or after the frame counter restarts.
phase_timings: Vec<FramePhaseSample>§presentation_latency: PresentationLatencyDiagnostics§renderer_submission: RendererSubmissionDiagnostics§text_caches: TextCacheDiagnostics§text_cache_deltas: TextCacheDeltaDiagnostics§runtime_text_timing: RuntimeTextTimingDiagnostics§widget_timings: Vec<WidgetTimingSample>§command_dispatches: Vec<CommandDispatchSample>§invalidations: Vec<InvalidationTraceSample>§retained_packet_hotspot: Option<RetainedPacketHotspotDiagnostics>§scene: SceneStatisticsImplementations§
Source§impl WindowPerformanceSnapshot
impl WindowPerformanceSnapshot
pub fn new( window_id: WindowId, frame_index: u64, phase_timings: Vec<FramePhaseSample>, renderer_submission: RendererSubmissionDiagnostics, text_caches: TextCacheDiagnostics, text_cache_deltas: TextCacheDeltaDiagnostics, scene: SceneStatistics, ) -> WindowPerformanceSnapshot
pub fn with_total_time_ms( window_id: WindowId, frame_index: u64, total_time_ms: f64, phase_timings: Vec<FramePhaseSample>, renderer_submission: RendererSubmissionDiagnostics, text_caches: TextCacheDiagnostics, text_cache_deltas: TextCacheDeltaDiagnostics, scene: SceneStatistics, ) -> WindowPerformanceSnapshot
pub fn with_presentation_latency( self, presentation_latency: PresentationLatencyDiagnostics, ) -> WindowPerformanceSnapshot
pub fn with_widget_timings( self, widget_timings: Vec<WidgetTimingSample>, ) -> WindowPerformanceSnapshot
pub fn with_event_traces( self, command_dispatches: Vec<CommandDispatchSample>, invalidations: Vec<InvalidationTraceSample>, ) -> WindowPerformanceSnapshot
pub fn with_runtime_text_timing( self, runtime_text_timing: RuntimeTextTimingDiagnostics, ) -> WindowPerformanceSnapshot
pub fn with_retained_packet_hotspot( self, retained_packet_hotspot: Option<RetainedPacketHotspotDiagnostics>, ) -> WindowPerformanceSnapshot
pub fn slowest_phase(&self) -> Option<FramePhaseSample>
pub fn summary(&self) -> WindowPerformanceSummary
Trait Implementations§
Source§impl Clone for WindowPerformanceSnapshot
impl Clone for WindowPerformanceSnapshot
Source§fn clone(&self) -> WindowPerformanceSnapshot
fn clone(&self) -> WindowPerformanceSnapshot
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 WindowPerformanceSnapshot
impl Debug for WindowPerformanceSnapshot
impl StructuralPartialEq for WindowPerformanceSnapshot
Auto Trait Implementations§
impl Freeze for WindowPerformanceSnapshot
impl RefUnwindSafe for WindowPerformanceSnapshot
impl Send for WindowPerformanceSnapshot
impl Sync for WindowPerformanceSnapshot
impl Unpin for WindowPerformanceSnapshot
impl UnsafeUnpin for WindowPerformanceSnapshot
impl UnwindSafe for WindowPerformanceSnapshot
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.