Skip to main content

record_work

Function record_work 

Source
pub fn record_work(label: &str, duration: Duration)
Expand description

Attribute a slice of script time to a named source.

Called from the runtime around timer callbacks and DOM event dispatch. The label is the event name where there is one, so a profile says which handler is expensive instead of only that something was.