mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix -jp=a mode for builtins.
This commit is contained in:
parent
f27b2509e0
commit
cf80edbbba
@ -156,6 +156,7 @@ local function prof_annotate(count1, samples)
|
|||||||
ms = math.max(ms, v)
|
ms = math.max(ms, v)
|
||||||
if pct >= prof_min then
|
if pct >= prof_min then
|
||||||
local file, line = k:match("^(.*):(%d+)$")
|
local file, line = k:match("^(.*):(%d+)$")
|
||||||
|
if not file then file = k; line = 0 end
|
||||||
local fl = files[file]
|
local fl = files[file]
|
||||||
if not fl then fl = {}; files[file] = fl; files[#files+1] = file end
|
if not fl then fl = {}; files[file] = fl; files[#files+1] = file end
|
||||||
line = tonumber(line)
|
line = tonumber(line)
|
||||||
|
Loading…
Reference in New Issue
Block a user