pub struct MetalExtProfiler { /* private fields */ }Expand description
Pipeline profiler for MetalExt.
Implementations§
Source§impl MetalExtProfiler
impl MetalExtProfiler
pub fn new() -> Self
pub fn record(&mut self, t: MetalExtPassTiming)
pub fn total_elapsed_us(&self) -> u64
pub fn slowest_pass(&self) -> Option<&MetalExtPassTiming>
pub fn num_passes(&self) -> usize
pub fn profitable_passes(&self) -> Vec<&MetalExtPassTiming>
Trait Implementations§
Source§impl Debug for MetalExtProfiler
impl Debug for MetalExtProfiler
Source§impl Default for MetalExtProfiler
impl Default for MetalExtProfiler
Source§fn default() -> MetalExtProfiler
fn default() -> MetalExtProfiler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetalExtProfiler
impl RefUnwindSafe for MetalExtProfiler
impl Send for MetalExtProfiler
impl Sync for MetalExtProfiler
impl Unpin for MetalExtProfiler
impl UnsafeUnpin for MetalExtProfiler
impl UnwindSafe for MetalExtProfiler
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