pub struct PProfProfiler<'a, 'b> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'a, 'b> Profiler for PProfProfiler<'a, 'b>
impl<'a, 'b> Profiler for PProfProfiler<'a, 'b>
Source§fn start_profiling(&mut self, _benchmark_id: &str, _benchmark_dir: &Path)
fn start_profiling(&mut self, _benchmark_id: &str, _benchmark_dir: &Path)
This function is called when Criterion.rs starts profiling a particular
benchmark. It provides the stringified benchmark ID and
a path to a directory where the profiler can store its data.
Source§fn stop_profiling(&mut self, _benchmark_id: &str, benchmark_dir: &Path)
fn stop_profiling(&mut self, _benchmark_id: &str, benchmark_dir: &Path)
This function is called after Criterion.rs stops profiling a particular
benchmark. The benchmark ID and directory are the same as in the call
to
start
, provided for convenience.Auto Trait Implementations§
impl<'a, 'b> Freeze for PProfProfiler<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for PProfProfiler<'a, 'b>
impl<'a, 'b> Send for PProfProfiler<'a, 'b>
impl<'a, 'b> Sync for PProfProfiler<'a, 'b>
impl<'a, 'b> Unpin for PProfProfiler<'a, 'b>
impl<'a, 'b> !UnwindSafe for PProfProfiler<'a, 'b>
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