Liking cljdoc? Tell your friends :D

espejito.core


*metrics*clj/s

source

measureclj/s≠macro

clj
(measure name & body)
cljs
(measure &form &env name & body)

Use this at layer boundaries in code. Not recommended for tight loops - may cause out-of-memory situation!

Use this at layer boundaries in code. Not recommended for tight loops - may cause out-of-memory situation!
source (clj)source (cljs)raw docstring

(print-table nested-metrics)
(print-table name-column-width nested-metrics)
(print-table table-printer name-column-width nested-metrics)

Print the report in a tabular format. Argument table-printer is an arity-2 fn that accepts header and rows.

Print the report in a tabular format. Argument table-printer is an arity-2 fn that accepts header and rows.
sourceraw docstring

reportclj/s≠macro

clj
(report f & body)
cljs
(report &form &env f & body)

Use this at the outermost periphery of the code.

Use this at the outermost periphery of the code.
source (clj)source (cljs)raw docstring

wrap-measureclj/s

(wrap-measure f measure-name)

Wrap given function such that it measures latency when invoked.

Wrap given function such that it measures latency when invoked.
sourceraw docstring

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

× close