Struct criterion::profiler::ExternalProfiler
source · [−]pub struct ExternalProfiler;
Expand description
Dummy profiler implementation, representing cases where the profiler is an external process (eg. perftools, etc.) which do not require start/stop hooks. This implementation does nothing and is used as the default.
Trait Implementations
sourceimpl Profiler for ExternalProfiler
impl Profiler for ExternalProfiler
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 RefUnwindSafe for ExternalProfiler
impl Send for ExternalProfiler
impl Sync for ExternalProfiler
impl Unpin for ExternalProfiler
impl UnwindSafe for ExternalProfiler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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