Skip to main content

span

Function span 

Source
pub fn span(label: &'static str) -> Span
Expand description

Start a named leaf-level CPU span (records on scope exit):

ⓘ
let _span = cpu_probe::span("my_stage");
do_work();