Skip to content

Commit

Permalink
Always close profiler output file.
Browse files Browse the repository at this point in the history
Reported by Guilherme Batalheiro. #1304
  • Loading branch information
Mike Pall committed Nov 14, 2024
1 parent 9ce8f1f commit fca6633
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/jit/p.lua
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 227,7 @@ local function prof_finish()
local samples = prof_samples
if samples == 0 then
if prof_raw ~= true then out:write("[No samples collected]\n") end
return
end
if prof_ann then
elseif prof_ann then
prof_annotate(prof_count1, samples)
else
prof_top(prof_count1, prof_count2, samples, "")
Expand Down

0 comments on commit fca6633

Please sign in to comment.