Struct NamedIntervalProfiler
pub struct NamedIntervalProfiler<'a> { /* private fields */ }Expand description
The named interval profiler.
The interval profiler collects samples which include information about interval duration, start point, and extra contextual information about the object that is being operated on.
Implementations§
§impl<'a> NamedIntervalProfiler<'a>
impl<'a> NamedIntervalProfiler<'a>
pub fn new(domain: &Domain, name: &'a str) -> NamedIntervalProfiler<'a>
pub fn new(domain: &Domain, name: &'a str) -> NamedIntervalProfiler<'a>
pub fn add_sample(&mut self)
pub fn add_sample(&mut self)
Adds a new profiling data sample to the profiler.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NamedIntervalProfiler<'a>
impl<'a> RefUnwindSafe for NamedIntervalProfiler<'a>
impl<'a> Send for NamedIntervalProfiler<'a>
impl<'a> Sync for NamedIntervalProfiler<'a>
impl<'a> Unpin for NamedIntervalProfiler<'a>
impl<'a> UnwindSafe for NamedIntervalProfiler<'a>
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