pub struct FrameMetrics {
pub update_duration: Duration,
pub view_duration: Duration,
pub frame_duration: Duration,
pub events_processed: usize,
pub commands_executed: usize,
pub timestamp: Instant,
}Expand description
Metrics for a single frame
Fields§
§update_duration: DurationTime taken to process update
view_duration: DurationTime taken to render view
frame_duration: DurationTotal frame time
events_processed: usizeNumber of events processed
commands_executed: usizeNumber of commands executed
timestamp: InstantFrame timestamp
Implementations§
Trait Implementations§
Source§impl Clone for FrameMetrics
impl Clone for FrameMetrics
Source§fn clone(&self) -> FrameMetrics
fn clone(&self) -> FrameMetrics
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 moreAuto Trait Implementations§
impl Freeze for FrameMetrics
impl RefUnwindSafe for FrameMetrics
impl Send for FrameMetrics
impl Sync for FrameMetrics
impl Unpin for FrameMetrics
impl UnsafeUnpin for FrameMetrics
impl UnwindSafe for FrameMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter