pub fn ad_hoc_event(weight: usize)
Available on crate feature
client_requests_defs
only.Expand description
Record an ad hoc event
If DHAT is invoked with --mode=ad-hoc
, instead of profiling heap operations (allocations and
deallocations), it profiles calls to this ad_hoc_event
client request.
The meaning of the weight
argument will depend on what the event represents, which is up to
the user. If no meaningful weight
argument exists, just use 1.
See also Ad hoc profiling