Skip to content

Commit

Permalink
FIX: force garbage collection before measuring delta-profile stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Dec 10, 2021
1 parent 3a30769 commit c33ff26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mezz/mezz-debug.reb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ dp: delta-profile: func [
block [block!]
/local start end adjust
][
; first count adjustments for empty code
; first force GC
recycle recycle
; than count adjustments for empty code
adjust: copy end: stats/profile
do []
stats/profile
Expand Down

0 comments on commit c33ff26

Please sign in to comment.