pub struct RenderMetrics {
pub frame_count: u64,
/* private fields */
}Expand description
Performance metrics collected during rendering.
Fields§
§frame_count: u64Total frames rendered.
Implementations§
Source§impl RenderMetrics
impl RenderMetrics
Sourcepub fn record_frame(&mut self, duration: Duration)
pub fn record_frame(&mut self, duration: Duration)
Record a frame’s render time.
Sourcepub fn percentile(&self, p: u8) -> u64
pub fn percentile(&self, p: u8) -> u64
Get percentile (0-100).
Sourcepub fn meets_targets(&self, targets: &PerformanceTargets) -> bool
pub fn meets_targets(&self, targets: &PerformanceTargets) -> bool
Check if metrics meet performance targets.
Trait Implementations§
Source§impl Clone for RenderMetrics
impl Clone for RenderMetrics
Source§fn clone(&self) -> RenderMetrics
fn clone(&self) -> RenderMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 RenderMetrics
impl Debug for RenderMetrics
Source§impl Default for RenderMetrics
impl Default for RenderMetrics
Source§fn default() -> RenderMetrics
fn default() -> RenderMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderMetrics
impl RefUnwindSafe for RenderMetrics
impl Send for RenderMetrics
impl Sync for RenderMetrics
impl Unpin for RenderMetrics
impl UnwindSafe for RenderMetrics
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