Skip to main content

record_static

Function record_static 

Source
pub fn record_static(label: &'static str, duration: Duration)
Expand description

Attribute a slice of script time to a fixed source, without allocating.

Use for anything called per DOM node. record_work takes a &str and interns it, which is fine per event and far too expensive per element.