lua-users home
lua-l archive

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


>`lua_getgccount' returns the number of Kbytes currently allocated by Lua.
>`lua_setgcthreshold' returns the number of Kbytes "available" until the
>next GC cycle (that is, when lua_getgccount() >= lua_setgcthreshold(),
>Lua triggers the GC).  (In Lua both values are returned by `gcinfo').

Thanks, gcinfo() is the function I was looking for. 
I could not find it in the "Standard Library" chapter of the reference
manual for Lua 4.0 (dated 6 Nov 2000).

  .Erix.