lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > can I get information from the C API which memory is used by the interpreter? I would like to determine which parts of the LUA script are very memory and "time" expensive, so I can create better code.
> > Is there a hook or anything else to get memory / performance information during running?
> 
> Use your own memory allocator, not the default one provided by the aux lib.

Or use collectgarbage'count'.

-- Roberto