Lua prof_init hook