First-class function instrumentation for aggregated sampling.
Provides functionality for wrapping functions with instrumentation code that collects performance data during execution. The instrumented functions are first-class objects that maintain their own sample collection state.
First-class function instrumentation for aggregated sampling. Provides functionality for wrapping functions with instrumentation code that collects performance data during execution. The instrumented functions are first-class objects that maintain their own sample collection state.
(sample-fn f collector-config)Create an sample wrapper of function f.
Takes a function and a collector configuration and returns a new function that wraps the original while collecting timing samples during execution. The returned function implements IFn, Runnable, and Callable interfaces.
Parameters: f - The function to instrument collector-config - A collector configuration that defines how samples are processed
Returns: An InstrumentedFn instance that wraps the original function and maintains its own sample collection state.
Create an sample wrapper of function f.
Takes a function and a collector configuration and returns a new
function that wraps the original while collecting timing samples
during execution. The returned function implements IFn, Runnable, and
Callable interfaces.
Parameters:
f - The function to instrument
collector-config - A collector configuration that defines how samples
are processed
Returns:
An InstrumentedFn instance that wraps the original function and maintains
its own sample collection state.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |