Skip to content

Commit 2009737

Browse files
committed
Revert "Always close profiler output file."
This reverts commit bcb7df8.
1 parent bcb7df8 commit 2009737

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/jit/p.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ local function prof_finish()
228228
local samples = prof_samples
229229
if samples == 0 then
230230
if prof_raw ~= true then out:write("[No samples collected]\n") end
231-
elseif prof_ann then
231+
return
232+
end
233+
if prof_ann then
232234
prof_annotate(prof_count1, samples)
233235
else
234236
prof_top(prof_count1, prof_count2, samples, "")

0 commit comments

Comments
 (0)