use super::*;
#[derive(Clone, Copy, Debug, Default, Deserialize, Getter, PartialEq, Serialize)]
pub struct LatencyDistribution {
#[get(type(copy))]
pub(crate) iterations: usize,
#[get(type(copy))]
pub(crate) p50_us: f64,
#[get(type(copy))]
pub(crate) p95_us: f64,
#[get(type(copy))]
pub(crate) p99_us: f64,
#[get(type(copy))]
pub(crate) max_us: f64,
#[get(type(copy))]
pub(crate) mean_us: f64,
#[get(type(copy))]
pub(crate) over_6_94ms_count: usize,
#[get(type(copy))]
pub(crate) over_16_67ms_count: usize,
#[get(type(copy))]
pub(crate) mean_dirty_area_ratio: f64,
#[get(type(copy))]
pub(crate) full_redraw_count: usize,
}
#[derive(Clone, Debug, Deserialize, Getter, New, PartialEq, Serialize)]
pub struct StressMatrixEntry {
pub(crate) name: String,
#[get(type(copy))]
pub(crate) latency: LatencyDistribution,
pub(crate) detail: String,
}
#[derive(Clone, Debug, Deserialize, Getter, PartialEq, Serialize)]
pub struct PartialDamageAbSummary {
pub(crate) name: String,
#[get(type(copy))]
pub(crate) baseline_full_redraw: LatencyDistribution,
#[get(type(copy))]
pub(crate) candidate_partial_damage: LatencyDistribution,
#[get(type(copy))]
pub(crate) p50_speedup_pct: f64,
#[get(type(copy))]
pub(crate) p95_speedup_pct: f64,
#[get(type(copy))]
pub(crate) p99_speedup_pct: f64,
#[get(type(copy))]
pub(crate) dirty_area_ratio_drop_pct: f64,
#[get(type(copy))]
pub(crate) bit_exact_parity: bool,
#[get(type(copy))]
pub(crate) verified_steps: usize,
pub(crate) detail: String,
}
#[derive(Clone, Debug, Deserialize, Getter, New, PartialEq, Serialize)]
pub struct StressMatrixReport {
pub(crate) entries: Vec<StressMatrixEntry>,
#[get(skip)]
pub(crate) partial_damage_ab: Option<PartialDamageAbSummary>,
}