mirror of https://github.com/status-im/timbre.git
Add `profiling/p*` macro
This commit is contained in:
parent
c9fdc52cd4
commit
85a30fb918
|
@ -1,3 +1,8 @@
|
|||
## Pending / unreleased
|
||||
|
||||
* NEW: Add `profiling/p*` macro.
|
||||
|
||||
|
||||
## v3.1.3 / 2014 Mar 11
|
||||
|
||||
* FIX: profiling id namespacing.
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
of named body. Always returns the body's result."
|
||||
[id & body] `(pspy* ~id (fn [] ~@body)))
|
||||
|
||||
(defmacro p [id & body] `(pspy ~id ~@body)) ; Alias
|
||||
(defmacro p [id & body] `(pspy ~id ~@body)) ; Alias
|
||||
(defmacro p* [id & body] `(pspy* ~id ~@body)) ; Alias
|
||||
|
||||
(comment
|
||||
(time (dotimes [_ 1000000])) ; ~20ms
|
||||
|
|
Loading…
Reference in New Issue