[go: up one dir, main page]

Function ad_hoc_event

Source
pub fn ad_hoc_event(weight: usize)
Expand description

Registers an event during ad hoc profiling.

The meaning of the weight argument is determined by the user. A call to this function has no effect if a Profiler is not running or not doing ad hoc profiling.