function | removed v1.9.542 | added v1.9.183 | Edit |
(instrumentable-syms)
(instrumentable-syms opts)
Given an opts map as per instrument, returns the set of syms that can be instrumented.
(defn instrumentable-syms
([] (instrumentable-syms nil))
([opts]
(assert (every? ident? (keys (:gen opts))) "instrument :gen expects ident keys")
(reduce into #{} [(filter fn-spec-name? (keys (s/registry)))
(keys (:spec opts))
(:stub opts)
(keys (:replace opts))])))