pub struct RegressionScanArgs {
pub database: Option<String>,
pub recent_days: i64,
pub baseline_days: i64,
pub min_samples: usize,
pub threshold_pct: f64,
pub min_delta_ms: f64,
pub object_type: Option<String>,
pub fail_on_regression: bool,
pub json: bool,
pub quiet: bool,
}Expand description
Arguments for perf regression-scan.
Fields§
§database: Option<String>Explicit PostgreSQL URL; falls back to fraiseql.toml / DATABASE_URL.
recent_days: i64Recent window size, in days.
baseline_days: i64Baseline window size (immediately before the recent window), in days.
min_samples: usizeMinimum comparable samples required on each side.
threshold_pct: f64Minimum p50 increase to flag, in percent.
min_delta_ms: f64Minimum absolute p50 increase to flag, in milliseconds.
object_type: Option<String>Restrict the scan to a single object_type.
fail_on_regression: boolExit non-zero when any regression is found.
json: boolEmit machine-readable JSON instead of the human report.
quiet: boolSuppress the human report (no effect in JSON mode).
Auto Trait Implementations§
impl Freeze for RegressionScanArgs
impl RefUnwindSafe for RegressionScanArgs
impl Send for RegressionScanArgs
impl Sync for RegressionScanArgs
impl Unpin for RegressionScanArgs
impl UnsafeUnpin for RegressionScanArgs
impl UnwindSafe for RegressionScanArgs
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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