Add `profiling/p*` macro

This commit is contained in:
Peter Taoussanis 2014-03-13 01:22:56 +07:00
parent c9fdc52cd4
commit 85a30fb918
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
## Pending / unreleased
* NEW: Add `profiling/p*` macro.
## v3.1.3 / 2014 Mar 11
* FIX: profiling id namespacing.

View File

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