DEPRECATED, further development work will be focused on Tufte at https://github.com/ptaoussanis/tufte.
DEPRECATED, further development work will be focused on Tufte at https://github.com/ptaoussanis/tufte.
{::pid {:times [t1 t2 ...] ; Times awaiting merge into stats :ntimes _ ; (count times) :stats {} ; Cumulative stats }}
{::pid {:times [t1 t2 ...] ; Times awaiting merge into stats :ntimes _ ; (count times) :stats {} ; Cumulative stats }}
(defnp name doc-string? attr-map? [params*] prepost-map? body)
(defnp name doc-string? attr-map? ([params*] prepost-map? body) + attr-map?)
Like defn
but wraps fn bodies with p
macro.
Like `defn` but wraps fn bodies with `p` macro.
(fnp name? ([params*] prepost-map? body) +)
(fnp name? [params*] prepost-map? body)
Like fn
but wraps fn bodies with p
macro.
Like `fn` but wraps fn bodies with `p` macro.
(fq-keyword id)
Returns namespaced keyword for given id.
Returns namespaced keyword for given id.
(profile level id & body)
When logging is enabled, executes named body with profiling enabled. Body forms wrapped in (pspy) will be timed and time stats logged. Always returns body's result.
Note that logging appenders will receive both a formatted profiling string AND the raw profiling stats under a special :profiling-stats key (useful for queryable db logging).
When logging is enabled, executes named body with profiling enabled. Body forms wrapped in (pspy) will be timed and time stats logged. Always returns body's result. Note that logging appenders will receive both a formatted profiling string AND the raw profiling stats under a special :profiling-stats key (useful for queryable db logging).
(pspy id & body)
Profile spy. When in the context of a pdata binding, records execution time of named body. Always returns the body's result.
Profile spy. When in the context of a *pdata* binding, records execution time of named body. Always returns the body's result.
(sampling-profile level probability id & body)
Like profile
, but only enables profiling with given probability.
Like `profile`, but only enables profiling with given probability.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close