Skip to main content

register_active_phase

Function register_active_phase 

Source
pub fn register_active_phase(name: &str) -> PhaseGuard
Expand description

Register one occurrence of a named background phase as currently active. Returns a guard: drop it (or let it fall out of scope) when the phase ends. Best-effort process-wide gauge only, read by comm.health — never load-bearing for correctness.