pub struct Profiler { /* private fields */ }Expand description
Configurable profiler engine.
Implementations§
Source§impl Profiler
impl Profiler
Sourcepub fn with_registry(self, registry: ProgramRegistry) -> Self
pub fn with_registry(self, registry: ProgramRegistry) -> Self
Replace the program registry (e.g. extended from config labels).
Sourcepub fn with_config_repr(self, repr: impl Into<String>) -> Self
pub fn with_config_repr(self, repr: impl Into<String>) -> Self
Set a string representation of the effective config, hashed into fingerprints so baselines go stale when configuration changes.
Sourcepub fn include_raw_logs(self, yes: bool) -> Self
pub fn include_raw_logs(self, yes: bool) -> Self
Include raw logs in each scenario report (they can be large).
Sourcepub fn fingerprint(&self, scenario: &Scenario) -> Fingerprint
pub fn fingerprint(&self, scenario: &Scenario) -> Fingerprint
The fingerprint of a scenario under the current config.
Sourcepub fn run(
&self,
backend: &dyn ExecutionBackend,
scenarios: &[Scenario],
baseline: Option<&BaselineStore>,
metadata: RunMetadata,
) -> Report
pub fn run( &self, backend: &dyn ExecutionBackend, scenarios: &[Scenario], baseline: Option<&BaselineStore>, metadata: RunMetadata, ) -> Report
Run all scenarios through backend, comparing against baseline when
provided, and assemble a Report.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Profiler
impl RefUnwindSafe for Profiler
impl Send for Profiler
impl Sync for Profiler
impl Unpin for Profiler
impl UnsafeUnpin for Profiler
impl UnwindSafe for Profiler
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