pub struct PassCosts { /* private fields */ }Expand description
GPU time per labelled render/compute pass, accumulated over a window of frames (ADR-0245).
Summed per label, not per pass instance. A frame encodes bloom-blur-h
once per pyramid level, and what a reader wants to know is what the blur
costs the frame — so the rows are what each label costs per frame, and a
label that appears N times carries all N.
Implementations§
Source§impl PassCosts
impl PassCosts
Sourcepub fn rows(&self) -> Vec<(&str, f64)>
pub fn rows(&self) -> Vec<(&str, f64)>
Every label’s mean milliseconds per frame, costliest first. Empty while no frame has been measured.
Sorted here rather than by the caller so every report orders the rows the same way; ties keep first-seen order, which is roughly composite order and reads as the frame’s own sequence.
Trait Implementations§
impl StructuralPartialEq for PassCosts
Auto Trait Implementations§
impl Freeze for PassCosts
impl RefUnwindSafe for PassCosts
impl Send for PassCosts
impl Sync for PassCosts
impl Unpin for PassCosts
impl UnsafeUnpin for PassCosts
impl UnwindSafe for PassCosts
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