pub struct MutexTrace<Label, TimeStamp>(/* private fields */);
Trait Implementations§
Source§impl<Label: Clone, TS: TimeStamp> Trace for MutexTrace<Label, TS>
impl<Label: Clone, TS: TimeStamp> Trace for MutexTrace<Label, TS>
Source§type TimeStamp = TS
type TimeStamp = TS
The type used for timing the events. Typically
std::time::Instant
or a cycle counter.Source§fn report(self) -> Vec<TraceEvent<Self::Label, Self::TimeStamp>>
fn report(self) -> Vec<TraceEvent<Self::Label, Self::TimeStamp>>
Returns a vector of all entries in the trace.
Source§fn emit_span(&self, label: Self::Label) -> SpanHandle<'_, Self>
fn emit_span(&self, label: Self::Label) -> SpanHandle<'_, Self>
Emits an event of type EventType::SpanOpen and returns a
SpanHandle
that emits another
EventType::SpanClose
when dropped.Source§fn emit_on_the_fly(&self, label: Self::Label)
fn emit_on_the_fly(&self, label: Self::Label)
Emits an
EventType::OnTheFly
event.Auto Trait Implementations§
impl<Label, TimeStamp> !Freeze for MutexTrace<Label, TimeStamp>
impl<Label, TimeStamp> RefUnwindSafe for MutexTrace<Label, TimeStamp>
impl<Label, TimeStamp> Send for MutexTrace<Label, TimeStamp>
impl<Label, TimeStamp> Sync for MutexTrace<Label, TimeStamp>
impl<Label, TimeStamp> Unpin for MutexTrace<Label, TimeStamp>
impl<Label, TimeStamp> UnwindSafe for MutexTrace<Label, TimeStamp>
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