jit.util.funcinfo
Example
Demonstrates output of this function.
PrintTable(jit.util.funcinfo(print))
local print = print
_G.print = function(...) print(...) end -- redefine print
PrintTable(jit.util.funcinfo(print))
Output:
-- First PrintTable output:
addr = 1773317824
ffid = 25
upvalues = 1
-- Second PrintTable output:
linedefined = 1
currentline = 1
params = 0
stackslots = 2
source = @lua_run
lastlinedefined = 1
children = false
upvalues = 1
nconsts = 0
isvararg = true
loc = lua_run:1
bytecodes = 5
gcconsts = 0