pub fn record_duration(section: &str, duration: Duration)
Record a completed duration for a section.
If the mutex is poisoned, this is a no-op. Profiling failures should not crash the application.