Skip to main content

trace_instant

Function trace_instant 

Source
pub fn trace_instant(event: &str)
Expand description

Emit an instant trace event (a milestone marker with no duration).

Instant events appear as vertical lines in Chrome Trace Format visualization tools (chrome://tracing, Perfetto). Use them to mark significant moments in execution:

[wt-trace] ts=1234567890 tid=3 event="Showed skeleton"

§Example

use worktrunk::shell_exec::trace_instant;

// Mark when the skeleton UI was displayed
trace_instant("Showed skeleton");

// Or with more context
trace_instant("Progressive render: headers complete");