(measure fs)
(measure fs {:keys [on-error?] :as opts})
takes a set of functions (namespace vars) with 'optional options' and wraps them with timers.
i.e. (measure #{#'app/foo #'app/bar}) or (measure #{#'app/foo #'app/bar} {:report log/info})
by default 'measure' will use 'println' to report times functions took
takes a set of functions (namespace vars) with 'optional options' and wraps them with timers. i.e. (measure #{#'app/foo #'app/bar}) or (measure #{#'app/foo #'app/bar} {:report log/info}) by default 'measure' will use 'println' to report times functions took
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close