pub struct PerformanceResult {
pub fps: f64,
pub frames: u64,
pub seconds: f64,
pub verdict: PerformanceVerdict,
pub bottleneck: Option<Bottleneck>,
}Expand description
What redrawing the window nonstop for a few seconds showed.
Fields§
§fps: f64Frames drawn per second. Unlike the durations of a FrameSummary, this
does count all the GPU’s work: a busy GPU holds back the next frame.
frames: u64Frames drawn.
seconds: f64How long it ran.
verdict: PerformanceVerdictHow that feels.
bottleneck: Option<Bottleneck>Where the time goes; None when the verdict is good.
Trait Implementations§
Source§impl Clone for PerformanceResult
impl Clone for PerformanceResult
Source§fn clone(&self) -> PerformanceResult
fn clone(&self) -> PerformanceResult
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 moreimpl Copy for PerformanceResult
Source§impl Debug for PerformanceResult
impl Debug for PerformanceResult
Source§impl Display for PerformanceResult
impl Display for PerformanceResult
Source§impl PartialEq for PerformanceResult
impl PartialEq for PerformanceResult
impl StructuralPartialEq for PerformanceResult
Auto Trait Implementations§
impl Freeze for PerformanceResult
impl RefUnwindSafe for PerformanceResult
impl Send for PerformanceResult
impl Sync for PerformanceResult
impl Unpin for PerformanceResult
impl UnsafeUnpin for PerformanceResult
impl UnwindSafe for PerformanceResult
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