pub struct WindowPerformanceSnapshot {Show 14 fields
pub window_id: WindowId,
pub frame_index: u64,
pub total_time_ms: 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§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, ) -> Self
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, ) -> Self
pub fn with_presentation_latency( self, presentation_latency: PresentationLatencyDiagnostics, ) -> Self
pub fn with_widget_timings( self, widget_timings: Vec<WidgetTimingSample>, ) -> Self
pub fn with_event_traces( self, command_dispatches: Vec<CommandDispatchSample>, invalidations: Vec<InvalidationTraceSample>, ) -> Self
pub fn with_runtime_text_timing( self, runtime_text_timing: RuntimeTextTimingDiagnostics, ) -> Self
pub fn with_retained_packet_hotspot( self, retained_packet_hotspot: Option<RetainedPacketHotspotDiagnostics>, ) -> Self
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