pub struct CounterSpan { /* private fields */ }Expand description
Time a sub-stage region into a crate::CounterId instead of a stage.
Some measurements sit strictly inside a stage leaf. Recording them as
spans would add their time to that leaf’s inclusive total a second time,
so they belong in a counter. This guard is span with a counter sink:
same enabled gate, same clock, no allocation on drop.
Trait Implementations§
Source§impl Drop for CounterSpan
impl Drop for CounterSpan
Auto Trait Implementations§
impl Freeze for CounterSpan
impl RefUnwindSafe for CounterSpan
impl Send for CounterSpan
impl Sync for CounterSpan
impl Unpin for CounterSpan
impl UnsafeUnpin for CounterSpan
impl UnwindSafe for CounterSpan
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