Liking cljdoc? Tell your friends :D

mysql-queue.utils


fn-optionsclj

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

metercljmacro

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

ns->msclj

(ns->ms t)

Converts a value in nanoseconds to milliseconds.

Converts a value in nanoseconds to milliseconds.
sourceraw docstring

numeric-statsclj

(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).
sourceraw docstring

profilecljmacro

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

profile-blockcljmacro

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

while-letcljmacro

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

with-error-handlercljmacro

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

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

× close