Library globals

Function globals . debug . addProbeToFunc

View source

addProbeToFunc - wrap a function with a debug probe
f:        function to wrap with a debug probe (hit counter)
label:    description, passed to probe

WARNING: call() currently breaks the call stack which affects backtrace and 
the use of caller(i>0). Do not use addProbeToFunc on functions which rely on
caller (which is probably bad coding style, but allowed).

Parameters

f

label