Skip to content

Commit

Permalink
Fix -jp=a mode for builtins.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pall committed Oct 2, 2016
1 parent f27b250 commit cf80edb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jit/p.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ local function prof_annotate(count1, samples)
ms = math.max(ms, v)
if pct >= prof_min then
local file, line = k:match("^(.*):(%d+)$")
if not file then file = k; line = 0 end
local fl = files[file]
if not fl then fl = {}; files[file] = fl; files[#files+1] = file end
line = tonumber(line)
Expand Down

0 comments on commit cf80edb

Please sign in to comment.