#[non_exhaustive]pub struct Options {
pub stop_gap_target: Duration,
pub report_gap_target: Duration,
pub callback_budget: Duration,
pub callback_interval_target: Duration,
pub check_calls_per_second: f64,
pub report_calls_per_second: f64,
pub minimum_calls: u64,
pub minimum_stage_wall: Duration,
pub weight_difference: f64,
pub negligible_stage_share: f64,
pub uneven_pace_ratio: f64,
}Expand description
Thresholds for Trace::diagnose. Start from Default and adjust fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stop_gap_target: DurationLongest acceptable stretch without a cancellation check. Default 10 ms.
report_gap_target: DurationLongest acceptable stretch without a report. Default 50 ms.
callback_budget: DurationLongest acceptable callback. Default 10 ms.
callback_interval_target: DurationLongest acceptable time between two runs of one callback. Default 10 ms.
check_calls_per_second: f64Check rate above which a busy call site gets a frequency note.
report_calls_per_second: f64Report rate above which a busy call site gets a batching note.
minimum_calls: u64Calls a site must make before it gets a frequency note.
minimum_stage_wall: DurationSequential stages must run at least this long in total before their weights are compared with measured time.
weight_difference: f64Smallest difference between a stage’s declared and measured share that produces weight advice.
A stage that took less than this share of the sequence’s time is too small to calibrate from one run (a flush that is trivial for this input may not be for the next). It keeps its declared weight, as long as the stages held this way together own at most half the bar.
uneven_pace_ratio: f64A task whose slowest quarter of reported units took at least this many
times as long as its fastest gets Kind::UnevenPace advice. It needs
report timing, at least 8 reports, and minimum_stage_wall of wall
time. A fastest quarter under the clock’s resolution counts as zero, so
any slower quarter qualifies. Default 4.