pub struct EventArgRecorder<'p> { /* private fields */ }
Expand description
A helper for recording costly arguments to self-profiling events. Used with
SelfProfilerRef::generic_activity_with_arg_recorder
.
Implementations§
source§impl EventArgRecorder<'_>
impl EventArgRecorder<'_>
sourcepub fn record_arg<A>(&mut self, event_arg: A)
pub fn record_arg<A>(&mut self, event_arg: A)
Records a single argument within the current generic activity being profiled.
Note: when self-profiling with costly event arguments, at least one argument needs to be recorded. A panic will be triggered if that doesn’t happen.
Auto Trait Implementations§
impl<'p> !RefUnwindSafe for EventArgRecorder<'p>
impl<'p> Send for EventArgRecorder<'p>
impl<'p> Sync for EventArgRecorder<'p>
impl<'p> Unpin for EventArgRecorder<'p>
impl<'p> !UnwindSafe for EventArgRecorder<'p>
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