(bind-to-timbre! log-perf?)
Adds a handler to Tufte to log stats to Timbre using a standard format.
Takes an atom called log-perf?
which, when dereferenced, tells us whether
performance logging is currently enabled.
Adds a handler to Tufte to log stats to Timbre using a standard format. Takes an atom called `log-perf?` which, when dereferenced, tells us whether performance logging is currently enabled.
(defpfn name doc argv & body)
Defines a function whose body needs to be profiled. The same as defining a
function like this: (defn x "A function" [y] (p :x (stuff y))
Defines a function whose body needs to be profiled. The same as defining a function like this: `(defn x "A function" [y] (p :x (stuff y))`
(p k & body)
(wrap-timing log-perf? handler)
Provides a compojure middleware for performing Tufte profiling. Takes an atom
called log-perf?
which, when dereferenced, tells us whether performance
logging is currently enabled. Also takes the standard handler
Provides a compojure middleware for performing Tufte profiling. Takes an atom called `log-perf?` which, when dereferenced, tells us whether performance logging is currently enabled. Also takes the standard handler
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close