(instrument sym-or-syms)
(instrument sym-or-syms opts)
Instruments the vars named by sym-or-syms, a symbol or collection of symbols. If a symbol identifies a namespace then all symbols in that namespace will be enumerated. Returns a collection of syms naming the vars instrumented.
The following options are available:
:with-depth <bool>
: If set to true, each execution log will be attached
with the current nesting level (depth) of function calls. Defaults to false.:xform <xform>
: Pass transducer <xform> to the logging operators:session <session>
: Use <session> to store the execution logInstruments the vars named by sym-or-syms, a symbol or collection of symbols. If a symbol identifies a namespace then all symbols in that namespace will be enumerated. Returns a collection of syms naming the vars instrumented. The following options are available: - `:with-depth <bool>`: If set to true, each execution log will be attached with the current nesting level (depth) of function calls. Defaults to false. - `:xform <xform>`: Pass transducer <xform> to the logging operators - `:session <session>`: Use <session> to store the execution log
(unstrument)
(unstrument sym-or-syms)
Undoes instrument on the vars named by sym-or-syms, specified as in instrument. With no args, unstruments all instrumented vars. Returns a collection of syms naming the vars unstrumented.
Undoes instrument on the vars named by sym-or-syms, specified as in instrument. With no args, unstruments all instrumented vars. Returns a collection of syms naming the vars unstrumented.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close