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.