Fix: `profiling/p*` was defined incorrectly (kyptin)

This commit is contained in:
Peter Taoussanis 2014-03-15 21:38:23 +07:00
parent 7afb9d2bfb
commit 76d7ac8b28
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
## Pending / unreleased
* FIX: `profiling/p*` was defined incorrectly (kyptin).
## v3.1.4 / 2014 Mar 13
* NEW: Add `profiling/p*` macro.

View File

@ -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