Skip to content

Commit

Permalink
Merge pull request #1589 from nmccamish/fix-with-profile
Browse files Browse the repository at this point in the history
macros: fix with-profile
  • Loading branch information
cxxxr authored Nov 7, 2024
2 parents 5687f52 + 13519c7 commit 7e4732b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/macros.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@

#+sbcl
(defmacro with-profile (&body body)
`(progn
(sb-profile:profile "LEM" "LEM-BASE" "LEM-INTERFACE")
,@body
(with-debug-output ("PROFILE")
(sb-profile:report))
(sb-profile:unprofile)))
(let ((names '("LEM" "LEM-CORE" "LEM-INTERFACE")))
`(progn
(sb-profile:profile ,@names)
,@body
(with-debug-output ("PROFILE")
(sb-profile:report))
(sb-profile:unprofile ,@names))))

(defmacro with-editor-stream (() &body body)
(alexandria:with-gensyms (stream)
Expand Down

0 comments on commit 7e4732b

Please sign in to comment.