[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Tracing Memory Grabbers
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 16 Mar 2012 12:47:53 -0300
> Using the Lua custom allocator is a nice idea, at least this could do
> up/down counting to know the number of Lua objects. Is there any
> example how to (mis)use lua_setallocf for this, is there a
> lua_setfreef() as well? I cannot find any info on that.
The file 'ltests.c' in the test distribution has a good example.
http://www.lua.org/tests/
-- Roberto