[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: No debug api to get the function before coroutine running
- From: Dibyendu Majumdar <mobile@...>
- Date: Sat, 3 Dec 2016 12:25:22 +0000
On 3 December 2016 at 12:15, 云风 Cloud Wu <firstname.lastname@example.org> wrote:
> I wrote a small tool to detected memory leaks in lua VM
> (https://github.com/cloudwu/lua-snapshot) ,
> It's hardly implement a pure lua version like this to traverse the whole lua
> vm to find out all of the lua objects,
> or do some hot update to replace some functions to new version.
Not sure the goal of this memory leak detector but Lua comes with an
optional component 'ltests.c' that has built-in leak detection. I
enable this in Ravi in debug builds - it has been helpful when I
introduced bugs that were leaking memory.