Skip to content

Commit

Permalink
Revert "Always close profiler output file."
Browse files Browse the repository at this point in the history
This reverts commit bcb7df8.
  • Loading branch information
ligurio committed Feb 6, 2025
1 parent bcb7df8 commit 2009737
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/jit/p.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ local function prof_finish()
local samples = prof_samples
if samples == 0 then
if prof_raw ~= true then out:write("[No samples collected]\n") end
elseif prof_ann then
return
end
if prof_ann then
prof_annotate(prof_count1, samples)
else
prof_top(prof_count1, prof_count2, samples, "")
Expand Down

0 comments on commit 2009737

Please sign in to comment.