Skip to main content

flush_performance

Function flush_performance 

Source
pub fn flush_performance()
Expand description

Delivers whatever has been tallied so far right now, instead of waiting for the next performance_flush_interval tick. The background flush thread is a daemon: it does not run on a normal process exit the way the Ruby gem’s at_exit hook does (Rust has no equivalent), so a short-lived program, or one about to shut down, should call this itself to avoid losing the last partial window.