lua-users home
lua-l archive

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


I wrote a simple tool to detect memory leak in  lua  (5.2).

https://github.com/cloudwu/lua-snapshot

It  traverses the whole lua state to mark the objects like gc , and make a snapshot in a table.

You can do snapshot twice , and compare them to find out new objects (table, thread, userdata, closure) created.

--
http://blog.codingnow.com