(fn-options f-var)
Combines a naive list of options accepted by a function that uses destructuring for keyword arguments.
Combines a naive list of options accepted by a function that uses destructuring for keyword arguments.
(meter metrics name & body)
Profiles a block of code. Assocs result to a named key in a provided atom. Returns the original return value.
Profiles a block of code. Assocs result to a named key in a provided atom. Returns the original return value.
(ns->ms t)
Converts a value in nanoseconds to milliseconds.
Converts a value in nanoseconds to milliseconds.
(numeric-stats s)
Returns a map containing the minimum (:min), the maximum (:max), the median (:median), the mean (:mean), and the 90 percentile (:90p).
Returns a map containing the minimum (:min), the maximum (:max), the median (:median), the mean (:mean), and the 90 percentile (:90p).
(profile & body)
Profiles a block of code. Returns a vector with original return value and elapsed time in ns.
Profiles a block of code. Returns a vector with original return value and elapsed time in ns.
(profile-block [metrics :as bindings] & body)
Profiles a block of code with multiple named hot spots. Requires a binding for
optionally used atom. Pass this atom to meter
to register hot spots.
Returns a map of hotspot => execution time (in ns).
The entire block is wrapped in :full hotspot by default.
Profiles a block of code with multiple named hot spots. Requires a binding for optionally used atom. Pass this atom to `meter` to register hot spots. Returns a map of hotspot => execution time (in ns). The entire block is wrapped in :full hotspot by default.
(while-let [form tst] & body)
Repeatedly executes body while test expression is true, evaluating the body with binding-form bound to the value of test.
Repeatedly executes body while test expression is true, evaluating the body with binding-form bound to the value of test.
(with-error-handler [f :as bindings] & body)
Returns a function of no arguments that calls fn with an exception object if one is thrown.
Returns a function of no arguments that calls fn with an exception object if one is thrown.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close