[luatex] Profiling LuaTeX / difference with jit
d.p.carlisle at gmail.com
Sun Mar 12 15:18:15 CET 2017
It looks like you are seeing the inlined C calls but the Lua level
name isn't getting reset so you see "a" apparently called four times.
the output is a bit less confusing if you restrict to Lua
if (hookType == "call" and funcInfo.what=='Lua') then
Then you get
$ luajittex --luaonly pg1.lua
$ luatex --luaonly pg1.lua
so it doesn't trace format in either case and doesn't trace the
returns in luajit, presumably as the function has been inlined in some
way by the jit compiler.
More information about the luatex