pub fn with_observed_codegen<R>(f: impl FnOnce() -> R) -> R
Run f with the OBSERVED codegen profile enabled, restoring the previous mode afterwards (panic-safe). Returns f’s result.
f