Struct pprof::criterion::PProfProfiler
source · [−]pub struct PProfProfiler<'a, 'b> { /* private fields */ }
Implementations
sourceimpl<'a, 'b> PProfProfiler<'a, 'b>
impl<'a, 'b> PProfProfiler<'a, 'b>
Trait Implementations
sourceimpl<'a, 'b> Profiler for PProfProfiler<'a, 'b>
impl<'a, 'b> Profiler for PProfProfiler<'a, 'b>
sourcefn 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. Read more
sourcefn 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. Read more
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more