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§
source§impl Profiler for ExternalProfiler
impl Profiler for ExternalProfiler
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 Freeze for ExternalProfiler
impl RefUnwindSafe for ExternalProfiler
impl Send for ExternalProfiler
impl Sync for ExternalProfiler
impl Unpin for ExternalProfiler
impl UnwindSafe for ExternalProfiler
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more