lua_getgccount

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

lua_getgccount

Brett Bibby
Hi,
The doc for lua 5.0.2 says that lua_getgccount returns the memory in use by
Lua. Is this _all_ memory in use by Lua? Does it include the VM, all tables,
all functions, all functions registered, etc, etc.?
Thanks,
Brett

Reply | Threaded
Open this post in threaded view
|

Re: lua_getgccount

Roberto Ierusalimschy
> The doc for lua 5.0.2 says that lua_getgccount returns the memory in use by
> Lua. Is this _all_ memory in use by Lua? Does it include the VM, all
> tables, all functions, all functions registered, etc, etc.?

Yes. The count is kept at the lowest level of memory allocation
(+ mallocs - frees +/- reallocs).

-- Roberto