Skip to main content

trace

Function trace 

Source
pub fn trace(label: &'static str) -> Trace
Expand description

A scratch phase timer for one block of the frame: with BREP_FRAME_TRACE=1 it writes [frame-trace] <label> <ms> to stderr when the block took longer than 250 ms, and costs one clock read otherwise. What finds the phase that holds a frame for seconds when perf/ptrace are unavailable.