(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
(trace fs)
(trace fs opts)
takes a set of functions (namespace vars) with 'optional options' and wraps them µ/trace (https://github.com/BrunoBonacci/mulog#%CE%BCtrace)
=> (trace #{#'user/rsum #'user/rmult})
in case µ/trace options are not provided, but the can be
=> (trace #{#'user/rsum #'user/rmult} {:pairs [:moo :zoo] ;; standard µ/trace :pairs :capture (fn [x] {:x-is x}) ;; ----- || ------- :capture :format-args (comp s/upper-case ;; if provided will also format and add input args to pairs str first)}}))
takes a set of functions (namespace vars) with 'optional options' and wraps them µ/trace (https://github.com/BrunoBonacci/mulog#%CE%BCtrace) => (trace #{#'user/rsum #'user/rmult}) in case µ/trace options are not provided, but the can be => (trace #{#'user/rsum #'user/rmult} {:pairs [:moo :zoo] ;; standard µ/trace :pairs :capture (fn [x] {:x-is x}) ;; ----- || ------- :capture :format-args (comp s/upper-case ;; if provided will also format and add input args to pairs str first)}}))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close