mirror of https://github.com/status-im/timbre.git
Add pspy times
This commit is contained in:
parent
1153ed4dfd
commit
6117b3b18d
|
@ -30,6 +30,12 @@
|
|||
|
||||
(defmacro p [id & body] `(pspy ~id ~@body)) ; Alias
|
||||
|
||||
(comment
|
||||
(time (dotimes [_ 1000000])) ; ~20ms
|
||||
;; Note that times are ~= for `pspy` as a pure macro and as a `pspy*` fn caller:
|
||||
(time (dotimes [_ 1000000] (pspy :foo))) ; ~300ms
|
||||
)
|
||||
|
||||
(declare pdata-stats format-pdata)
|
||||
|
||||
(defmacro with-pdata [level & body]
|
||||
|
|
Loading…
Reference in New Issue