Faster and prettier reimplementation of clojure.tools.trace
with unnecessary
parts removed. Used for tracing function invocations and their results.
Faster and prettier reimplementation of `clojure.tools.trace` with unnecessary parts removed. Used for tracing function invocations and their results.
(trace-ns* ns)
Trace all Vars in the given namespace. Can be undone with untrace-ns*
. ns
should be a namespace object or a symbol.
No-op for clojure.core and orchard.trace.
Trace all Vars in the given namespace. Can be undone with `untrace-ns*`. `ns` should be a namespace object or a symbol. No-op for clojure.core and orchard.trace.
(trace-var* v)
If the specified Var holds an IFn and is not marked as a macro, its
contents is replaced with a version wrapped in a tracing call;
otherwise nothing happens. Can be undone with untrace-var*
.
If the specified Var holds an IFn and is not marked as a macro, its contents is replaced with a version wrapped in a tracing call; otherwise nothing happens. Can be undone with `untrace-var*`.
(traceable? v)
Return true if the given var can be traced.
Return true if the given var can be traced.
(traced? v)
Return true if the given var is currently traced.
Return true if the given var is currently traced.
(untrace-all)
Reverses the effect of tracing for all already traced vars and namespaces.
Reverses the effect of tracing for all already traced vars and namespaces.
(untrace-ns* ns)
Untrace all Vars in the given namespace.
Untrace all Vars in the given namespace.
(untrace-var* v)
Reverses the effect of trace-var*
for the given Var, replacing the traced
function with the original, untraced version. No-op for non-traced Vars.
Reverses the effect of `trace-var*` for the given Var, replacing the traced function with the original, untraced version. No-op for non-traced Vars.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close