I have following execution stack:
C++
C Lua API
LuaJIT
C functions - my own functions, injected to Lua via C-Lua-API which called from lua script
I want to profiling this code. And I want to know percentage time spent in luajit phase.
I see come problems here. If I will compile luajit with flags something like -pg -fprofile-generate -fprofile-use it will be not the same that luajit compiled for production build.
Is there any way to figure out what's going on in LUAJit phase?
Good example of this executions stack - openresty