I'm currently working on a MOAI project using Lua. I"m trying to set up some stress tests for some of the game objects, and in turn tracking when the Lua objects I have are created and destroyed during a game session. I can easily track when an "class" object/table has been initialized by incrementing the count in the constructor or initializer. However, because Lua does not have destructors, I'm not sure how I can track when an object has been removed from memory.
Would appreciate any help or suggestions on this matter. Thanks!