A Lua profiling tool for performance optimization