pub trait CgroupStatsClaim {
Show 28 methods
// Required methods
fn claim_cgroup_name<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, String>;
fn claim_num_workers<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, usize>;
fn claim_cpus_used<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> SetClaim<'a, usize>;
fn claim_num_cpus<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, usize>;
fn claim_avg_off_cpu_pct<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, Option<f64>>;
fn claim_min_off_cpu_pct<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, Option<f64>>;
fn claim_max_off_cpu_pct<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, Option<f64>>;
fn claim_spread<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, Option<f64>>;
fn claim_max_gap_ms<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, u64>;
fn claim_max_gap_cpu<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, usize>;
fn claim_total_migrations<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, u64>;
fn claim_migration_ratio<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_p99_wake_latency_us<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_median_wake_latency_us<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_wake_latency_cv<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_wake_measured<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, bool>;
fn claim_median_timer_latency_us<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_p99_timer_latency_us<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_p999_timer_latency_us<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_worst_timer_latency_us<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_timer_measured<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, bool>;
fn claim_total_iterations<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, u64>;
fn claim_total_cpu_time_ns<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, u64>;
fn claim_mean_run_delay_us<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_worst_run_delay_us<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_run_delay_measured<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, bool>;
fn claim_page_locality<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_cross_node_migration_ratio<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
}Expand description
Pointwise-claim accessors generated by #[derive(Claim)] on CgroupStats. One claim_<field> method per public field, taking &mut Verdict as the accumulator; container fields (BTreeSet/Vec) route through SetClaim/SeqClaim. Method dispatch keys on the stats struct’s type, so identical field names across distinct stats structs do not collide. For prelude-exported stats types the trait is preluded, so use ktstr::prelude::* brings the accessors into scope; otherwise import the trait from the stats type’s module.