Skip to content

Commit

Permalink
macros: fix with-profile
Browse files Browse the repository at this point in the history
Replace lem-base with lem-core, refactor so that only that which we
profile gets unprofiled.
  • Loading branch information
nmccamish committed Nov 6, 2024
1 parent 5687f52 commit 13519c7
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 13519c7

Please sign in to comment.