KTSTR_SCHEDULER_PROFILE_ENV

Constant KTSTR_SCHEDULER_PROFILE_ENV 

Source
pub const KTSTR_SCHEDULER_PROFILE_ENV: &str = "KTSTR_SCHEDULER_PROFILE";
Expand description

Name of the environment variable selecting the cargo build profile for a SchedulerSpec::Discover scheduler built on demand by build_and_find_binary. Holds a cargo profile NAME; unset / empty means the RELEASE default (see build_and_find_binary — a debug sched_ext scheduler is never the intended thing to test). Set by cargo ktstr <cmd> --profile <NAME> (on test / coverage / verifier / perf-delta / replay), or exported directly to pick a non-default profile. This is INDEPENDENT of the harness --release (--cargo-profile release to nextest), which selects the harness/test binary’s compile profile and does NOT touch this var — DECOUPLING the scheduler-under-test’s profile from the harness profile: the scheduler runs optimized by default while the harness keeps its dev-profile assertion thresholds and catch_unwind behavior unless its own build profile is set separately.