mirror of
https://github.com/status-im/timbre.git
synced 2025-01-15 22:34:17 +00:00
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…
x
Reference in New Issue
Block a user