[][src]Function dhat::ad_hoc_event

pub fn ad_hoc_event(weight: usize)

Register an event during ad hoc profiling. Has no effect unless a Dhat value that was created with Dhat::start_ad_hoc_profiling is in scope. The meaning of the weight argument is determined by the user.