pub struct CachegrindRegressionConfig {
pub fail_fast: bool,
pub hard_limits: Vec<(CachegrindMetric, Metric)>,
pub soft_limits: Vec<(CachegrindMetric, f64)>,
}
Available on crate feature
runner
only.Expand description
The callgrind regression check configuration
Fields§
§fail_fast: bool
True if benchmarks should fail on first encountered failed regression check
hard_limits: Vec<(CachegrindMetric, Metric)>
The hard limits
soft_limits: Vec<(CachegrindMetric, f64)>
The soft limits
Trait Implementations§
Source§impl Clone for CachegrindRegressionConfig
impl Clone for CachegrindRegressionConfig
Source§fn clone(&self) -> CachegrindRegressionConfig
fn clone(&self) -> CachegrindRegressionConfig
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 CachegrindRegressionConfig
impl Debug for CachegrindRegressionConfig
Source§impl Default for CachegrindRegressionConfig
impl Default for CachegrindRegressionConfig
Source§impl RegressionConfig<CachegrindMetric> for CachegrindRegressionConfig
impl RegressionConfig<CachegrindMetric> for CachegrindRegressionConfig
Source§fn check(
&self,
metrics_summary: &MetricsSummary<CachegrindMetric>,
) -> Vec<ToolRegression>
fn check( &self, metrics_summary: &MetricsSummary<CachegrindMetric>, ) -> Vec<ToolRegression>
Check the
MetricsSummary
for regressions. Read moreSource§fn get_soft_limits(&self) -> &[(CachegrindMetric, f64)]
fn get_soft_limits(&self) -> &[(CachegrindMetric, f64)]
Return the soft limits
Source§fn get_hard_limits(&self) -> &[(CachegrindMetric, Metric)]
fn get_hard_limits(&self) -> &[(CachegrindMetric, 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
RegressionMetrics
impl StructuralPartialEq for CachegrindRegressionConfig
Auto Trait Implementations§
impl Freeze for CachegrindRegressionConfig
impl RefUnwindSafe for CachegrindRegressionConfig
impl Send for CachegrindRegressionConfig
impl Sync for CachegrindRegressionConfig
impl Unpin for CachegrindRegressionConfig
impl UnwindSafe for CachegrindRegressionConfig
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