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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes