Module readings_probe::global [−][src]
Expand description
grobal default probe instance and associated macros This module contains helpers to put a Probe in a global “well-known” place, allowing to instrument deep routines without passing the Probe around the entire stack.
Probe must be initialized and spawn as usual, typically close to the main then handled
to the set
function. Notice that Probe can be clone() if some instrumentation at the
top level is also needed.
log_event() and get_i64 will fail silently if the probe has not be set
, allowing to
toggle on or off the instrumentation at the top level.