72093637ac8b
Merge.
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Fri, 01 Mar 2019 14:51:11 -0500 |
parents | 9b6480080f38 (diff) 3cf5a5efd686 (current diff) |
children | 71b34a9a3413 |
branches/tags | (none) |
files |
Changes
--- a/src/debugging.lisp Mon Feb 25 22:07:11 2019 -0500 +++ b/src/debugging.lisp Fri Mar 01 14:51:11 2019 -0500 @@ -192,12 +192,12 @@ (dump-profile filename)) #+sbcl -(defmacro profile (&body body) - "Profile `body` and dump the report to `lisp.prof`." +(defmacro profile (form &key (mode :cpu)) + "Profile `form` and dump the report to `lisp.prof`." `(progn - (start-profiling) + (start-profiling :mode ,mode) (unwind-protect - (time (progn ,@body)) + (time ,form) (stop-profiling))))