pub struct CallgrindRegressionConfig {
pub fail_fast: bool,
pub hard_limits: Vec<(EventKind, Metric)>,
pub soft_limits: Vec<(EventKind, f64)>,
}Available on crate feature
runner only.Expand description
The callgrind regression check configuration
Fields§
§fail_fast: boolTrue if benchmarks should fail on first encountered failed regression check
hard_limits: Vec<(EventKind, Metric)>The hard limits
soft_limits: Vec<(EventKind, f64)>The soft limits
Trait Implementations§
Source§impl Clone for CallgrindRegressionConfig
impl Clone for CallgrindRegressionConfig
Source§fn clone(&self) -> CallgrindRegressionConfig
fn clone(&self) -> CallgrindRegressionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallgrindRegressionConfig
impl Debug for CallgrindRegressionConfig
Source§impl Default for CallgrindRegressionConfig
impl Default for CallgrindRegressionConfig
Source§impl RegressionConfig<EventKind> for CallgrindRegressionConfig
impl RegressionConfig<EventKind> for CallgrindRegressionConfig
Source§fn check(&self, metrics_summary: &MetricsSummary) -> Vec<ToolRegression>
fn check(&self, metrics_summary: &MetricsSummary) -> Vec<ToolRegression>
Check the MetricsSummary for regressions.
The limits for event kinds which are not present in the MetricsSummary are ignored.
Source§fn get_soft_limits(&self) -> &[(EventKind, f64)]
fn get_soft_limits(&self) -> &[(EventKind, f64)]
Return the soft limits
Source§fn get_hard_limits(&self) -> &[(EventKind, Metric)]
fn get_hard_limits(&self) -> &[(EventKind, Metric)]
Return the hard limits
Source§fn check_and_print(
&self,
metrics_summary: &MetricsSummary<T>,
) -> Vec<ToolRegression>
fn check_and_print( &self, metrics_summary: &MetricsSummary<T>, ) -> Vec<ToolRegression>
Check for regressions and print them if present
Source§fn check_regressions(
&self,
metrics_summary: &MetricsSummary<T>,
) -> Vec<RegressionMetrics<T>>
fn check_regressions( &self, metrics_summary: &MetricsSummary<T>, ) -> Vec<RegressionMetrics<T>>
Check for regressions and return the
RegressionMetricsimpl StructuralPartialEq for CallgrindRegressionConfig
Auto Trait Implementations§
impl Freeze for CallgrindRegressionConfig
impl RefUnwindSafe for CallgrindRegressionConfig
impl Send for CallgrindRegressionConfig
impl Sync for CallgrindRegressionConfig
impl Unpin for CallgrindRegressionConfig
impl UnwindSafe for CallgrindRegressionConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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