#[non_exhaustive]pub struct ProfiledFrame<'a> {
pub index: u64,
pub timing: FrameTiming,
pub gpu: Option<GpuTiming>,
pub records: &'a [ScopeRecord],
pub dropped: usize,
}Expand description
A frame the profiler holds.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: u64Its number: the frames pushed before it, paused or not.
timing: FrameTimingWhen it started and how long it took.
gpu: Option<GpuTiming>The GPU’s time over its drawing, once read back: None until then,
and for a frame not drawn or not timed.
records: &'a [ScopeRecord]Its scopes, in the order they ended, so that a parent follows its children.
dropped: usizeIts scopes not kept: those past PROFILER_RECORDS.
Trait Implementations§
Source§impl<'a> Clone for ProfiledFrame<'a>
impl<'a> Clone for ProfiledFrame<'a>
impl<'a> Copy for ProfiledFrame<'a>
Auto Trait Implementations§
impl<'a> Forget for ProfiledFrame<'a>
impl<'a> Freeze for ProfiledFrame<'a>
impl<'a> Move for ProfiledFrame<'a>
impl<'a> RefUnwindSafe for ProfiledFrame<'a>
impl<'a> Send for ProfiledFrame<'a>
impl<'a> Sync for ProfiledFrame<'a>
impl<'a> Unpin for ProfiledFrame<'a>
impl<'a> UnsafeUnpin for ProfiledFrame<'a>
impl<'a> UnwindSafe for ProfiledFrame<'a>
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