pub struct FrameGpuTimes {
pub render_ms: f64,
pub pack_ms: f64,
pub sampled_frames: u64,
pub flat_frames: u64,
}Expand description
What the sampled frames of an export measured.
Fields§
§render_ms: f64Summed GPU time from graph start to graph end.
pack_ms: f64Summed GPU time from graph end to pack end.
sampled_frames: u64Frames whose timestamps were read.
flat_frames: u64Frames whose three timestamps were equal, as on backends that do not advance the counter
across empty passes (Metal). Not counted in sampled_frames.
Implementations§
Source§impl FrameGpuTimes
impl FrameGpuTimes
Sourcepub fn render_ms_per_frame(&self) -> Option<f64>
pub fn render_ms_per_frame(&self) -> Option<f64>
The mean graph time of a sampled frame, when any was sampled.
Sourcepub fn pack_ms_per_frame(&self) -> Option<f64>
pub fn pack_ms_per_frame(&self) -> Option<f64>
The mean pack time of a sampled frame, when any was sampled.
Trait Implementations§
Source§impl Clone for FrameGpuTimes
impl Clone for FrameGpuTimes
impl Copy for FrameGpuTimes
Source§impl Debug for FrameGpuTimes
impl Debug for FrameGpuTimes
Source§impl Default for FrameGpuTimes
impl Default for FrameGpuTimes
Source§impl PartialEq for FrameGpuTimes
impl PartialEq for FrameGpuTimes
impl StructuralPartialEq for FrameGpuTimes
Auto Trait Implementations§
impl Freeze for FrameGpuTimes
impl RefUnwindSafe for FrameGpuTimes
impl Send for FrameGpuTimes
impl Sync for FrameGpuTimes
impl Unpin for FrameGpuTimes
impl UnsafeUnpin for FrameGpuTimes
impl UnwindSafe for FrameGpuTimes
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more