mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Always close profiler output file.
Reported by Guilherme Batalheiro. #1304
This commit is contained in:
parent
9ce8f1ff8e
commit
fca66335d1
@ -227,9 +227,7 @@ local function prof_finish()
|
|||||||
local samples = prof_samples
|
local samples = prof_samples
|
||||||
if samples == 0 then
|
if samples == 0 then
|
||||||
if prof_raw ~= true then out:write("[No samples collected]\n") end
|
if prof_raw ~= true then out:write("[No samples collected]\n") end
|
||||||
return
|
elseif prof_ann then
|
||||||
end
|
|
||||||
if prof_ann then
|
|
||||||
prof_annotate(prof_count1, samples)
|
prof_annotate(prof_count1, samples)
|
||||||
else
|
else
|
||||||
prof_top(prof_count1, prof_count2, samples, "")
|
prof_top(prof_count1, prof_count2, samples, "")
|
||||||
|
Loading…
Reference in New Issue
Block a user