Re: LuaJIT 2.1 profiler from C/C++

  • From: Mike Pall <mike-1311@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 14 Nov 2013 18:19:37 +0100

rippel tippel wrote:
> My workflow is start() - dump() - stop() , leaving enough time
> (several seconds) between these calls. However
> luaJIT_profile_dumpstack() always returns NULL. Am I missing
> something?

luaJIT_profile_dumpstack() is supposed to be called from the
profiler callback, passing the state you received as an argument.
And the profiler callback only gets called if you actually execute
Lua code.

--Mike

Other related posts: