lua-users home
lua-l archive

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

Christophe Gimenez wrote:
> Thus, how much memory a "LUA state" consumes (don't take in account the memory used by the vars of the script) ?

Take a look at lmem.c there are some debug settings that will give you
total memory allocated and number of blocks.

If this does not fullfill your requirements it should be quite easy to
modify lmem.c to get the information you need. All memory management in
Lua goes thru this module (alloc/realloc/free) ...