mysten_metrics::thread_stall_monitor

Function start_thread_stall_monitor

Source
pub fn start_thread_stall_monitor()
Expand description

Monitors temporary stalls in tokio scheduling every MONITOR_INTERVAL. Calls thread_monitor_report_stall if more than ALERT_THRESHOLD has elapsed. When the stall clears, we observer the duration in a histogram.