pub fn install_sched_switch_trace_hook(hook: SchedSwitchTraceHook)Expand description
Installs the process-wide scheduler-switch diagnostic consumer.
Reinstalling the same function is harmless; replacing a live consumer is an invariant violation because switches may concurrently execute the hook.