This namespace started as a fork of cider-nrepl instrument middleware but departed a lot from it to make it work for clojurescript and to make it able to trace more stuff.
Provides utilities to recursively instrument forms for all our traces.
If you are interested in understanding this, there is a nice flow diagram here : /docs/form_instrumentation.pdf
This namespace started as a fork of cider-nrepl instrument middleware but departed a lot from it to make it work for clojurescript and to make it able to trace more stuff. Provides utilities to recursively instrument forms for all our traces. If you are interested in understanding this, there is a nice flow diagram here : /docs/form_instrumentation.pdf
(instrument {:keys [env normalize-gensyms?] :as config} form)
Instrument a form for tracing. Returns a map with :inst-form and :init-forms.
Instrument a form for tracing. Returns a map with :inst-form and :init-forms.
(make-instrumented-fn-tracker)
Set of special-forms that we don't want to wrap with instrumentation.
These are either forms that don't do anything interesting (like
quote
) or forms that just can't be wrapped (like catch
and
finally
).
Set of special-forms that we don't want to wrap with instrumentation. These are either forms that don't do anything interesting (like `quote`) or forms that just can't be wrapped (like `catch` and `finally`).
(special-symbol+? symb)
Like clojure.core/special-symbol? but includes cljs specials
Like clojure.core/special-symbol? but includes cljs specials
(track-fn! {:keys [instrumented-fns]} fn-ns fn-name arity)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close