Fix -jp=a mode for builtins.

This commit is contained in:
Mike Pall 2016-10-02 14:33:31 +02:00
parent f27b2509e0
commit cf80edbbba

View File

@ -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)