pub struct StepProfiler { /* private fields */ }Expand description
Simple profiler that collects timings for pipeline steps
Implementations§
Source§impl StepProfiler
impl StepProfiler
pub fn new(enabled: bool) -> StepProfiler
pub fn time_step<F, R>(&mut self, step_name: &str, f: F) -> Rwhere
F: FnOnce() -> R,
pub fn print_summary(&self)
Auto Trait Implementations§
impl Freeze for StepProfiler
impl RefUnwindSafe for StepProfiler
impl Send for StepProfiler
impl Sync for StepProfiler
impl Unpin for StepProfiler
impl UnsafeUnpin for StepProfiler
impl UnwindSafe for StepProfiler
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