Skip to main content

begin_debug_span

Function begin_debug_span 

Source
pub fn begin_debug_span(
    state: &DebugStateRef,
    now_ms: f64,
    name: &str,
    channel: Option<String>,
) -> Option<LogTimer>
Expand description

Opens a named timing span only while a debug session is active (TS beginDebugSpan): a running LogTimer to hand to end_debug_span, or None when debug is disabled (nothing is allocated).