Liking cljdoc? Tell your friends :D

perf.core


bind-to-timbre!clj

(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.
raw docstring

defpfncljmacro

(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))`
raw docstring

pcljmacro

(p k & body)

wrap-timingclj

(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
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close