mirror of https://github.com/status-im/timbre.git
Fix: `profiling/p*` was defined incorrectly (kyptin)
This commit is contained in:
parent
7afb9d2bfb
commit
76d7ac8b28
|
@ -1,3 +1,8 @@
|
|||
## Pending / unreleased
|
||||
|
||||
* FIX: `profiling/p*` was defined incorrectly (kyptin).
|
||||
|
||||
|
||||
## v3.1.4 / 2014 Mar 13
|
||||
|
||||
* NEW: Add `profiling/p*` macro.
|
||||
|
|
|
@ -27,8 +27,9 @@
|
|||
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
|
||||
;;; Aliases
|
||||
(def p* pspy*)
|
||||
(defmacro p [id & body] `(pspy ~id ~@body))
|
||||
|
||||
(comment
|
||||
(time (dotimes [_ 1000000])) ; ~20ms
|
||||
|
|
Loading…
Reference in New Issue