[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LUA Memory requirement
- From: erik@... (Erik Hougaard)
- Date: Mon, 20 Mar 2000 12:51:45 +0100
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) ...