Skip to content

Instantly share code, notes, and snippets.

View thearthur's full-sized avatar

Arthur Ulfeldt thearthur

  • Santa Cruz, CA, USA, Earth
View GitHub Profile
;;; See the inspirational SO question: http://stackoverflow.com/questions/3346382
(require 'clojure.contrib.trace)
(defn trace-ns
"Replaces each function from the given namespace with a version wrapped
in a tracing call. Can be undone with untrace-ns. ns should be a namespace
object or a symbol."
[ns]
(doseq [s (keys (ns-interns ns))