pub struct FrameSample {Show 18 fields
pub frame_index: u64,
pub recorded_at: Instant,
pub backend: &'static str,
pub renderer: RendererDeviceInfo,
pub mode: DiagnosticPresentMode,
pub frame_build_ms: f32,
pub diff_ms: f32,
pub draw_present_ms: f32,
pub total_ms: f32,
pub dirty_rect_count: usize,
pub dirty_area_ratio: f32,
pub submit_scope: &'static str,
pub fallback_reason: Option<&'static str>,
pub primary_reason: Option<&'static str>,
pub recovery_state: &'static str,
pub recovery_attempt: u8,
pub render: FrameRenderMetrics,
pub present: FramePresentMetrics,
}Fields§
§frame_index: u64§recorded_at: Instant§backend: &'static str§renderer: RendererDeviceInfo§mode: DiagnosticPresentMode§frame_build_ms: f32§diff_ms: f32§draw_present_ms: f32§total_ms: f32§dirty_rect_count: usize§dirty_area_ratio: f32§submit_scope: &'static str§fallback_reason: Option<&'static str>§primary_reason: Option<&'static str>§recovery_state: &'static str§recovery_attempt: u8§render: FrameRenderMetrics§present: FramePresentMetricsTrait Implementations§
Source§impl Clone for FrameSample
impl Clone for FrameSample
Auto Trait Implementations§
impl Forget for FrameSample
impl Freeze for FrameSample
impl Move for FrameSample
impl RefUnwindSafe for FrameSample
impl Send for FrameSample
impl Sync for FrameSample
impl Unpin for FrameSample
impl UnsafeUnpin for FrameSample
impl UnwindSafe for FrameSample
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