mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-22 06:43:27 +00:00
Flush profile into file
Using jit.p:start() with a file argument does not flush result to the file. It's Ok when used from command line, still it's a hurdle for runtime invocation.
This commit is contained in:
parent
3f9389edc6
commit
0fcb1adb9d
@ -238,6 +238,7 @@ local function prof_finish()
|
||||
prof_count1 = nil
|
||||
prof_count2 = nil
|
||||
prof_ud = nil
|
||||
if out ~= stdout then out:close() end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user