Skip to main content

WindowPerformanceSnapshot

Struct WindowPerformanceSnapshot 

Source
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: SceneStatistics

Implementations§

Source§

impl WindowPerformanceSnapshot

Source

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

Source

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

Source

pub fn with_presentation_latency( self, presentation_latency: PresentationLatencyDiagnostics, ) -> Self

Source

pub fn with_widget_timings( self, widget_timings: Vec<WidgetTimingSample>, ) -> Self

Source

pub fn with_event_traces( self, command_dispatches: Vec<CommandDispatchSample>, invalidations: Vec<InvalidationTraceSample>, ) -> Self

Source

pub fn with_runtime_text_timing( self, runtime_text_timing: RuntimeTextTimingDiagnostics, ) -> Self

Source

pub fn with_retained_packet_hotspot( self, retained_packet_hotspot: Option<RetainedPacketHotspotDiagnostics>, ) -> Self

Source

pub fn slowest_phase(&self) -> Option<FramePhaseSample>

Source

pub fn summary(&self) -> WindowPerformanceSummary

Trait Implementations§

Source§

impl Clone for WindowPerformanceSnapshot

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for WindowPerformanceSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for WindowPerformanceSnapshot

Source§

fn eq(&self, other: &WindowPerformanceSnapshot) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for WindowPerformanceSnapshot

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.