Liking cljdoc? Tell your friends :D
Clojure only.

criterium.instrument-fn

First-class function instrumentation for performance 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 performance 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.
raw docstring

instrument-fnclj

(instrument-fn f collector-config)

Create an instrumented 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 instrumented 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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close