[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: GC/memory stats?
- From: Enrico Colombini <erix@...>
- Date: Mon, 26 Aug 2002 16:13:21 +0200
>`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).