# lua_memleak **Repository Path**: thank_hello_world/lua_memleak ## Basic Information - **Project Name**: lua_memleak - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-12 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## API: ``` MemLeak:init(file) -- init MemLeak by out file MemLeak:cacheMemory() -- cache current memory state MemLeak:showCache(index) -- show memory state MemLeak:differCache() -- diff memory state MemLeak:fixTableDesc(object) -- fix this function, add your description MemLeak:fixUserdataDesc(object, desc) -- fix this function, add your description ``` ## SAMPLE: ``` ------------------------------------------------ -- test MemLeak:init([[memleak.log]]) -- init MemLeak op MemLeak:cacheMemory() -- cache memory, index == 1 local aaaaaaaaa = {} bbbbbbbbbb = {} MemLeak:cacheMemory() -- cache memory, index == 2 MemLeak:differCache() -- diff memory cache --------------------------------------------------------- ``` ## 中文说明: http://radiotail.github.io/2014/11/03/%E6%9F%A5%E6%89%BElua%E5%B1%82%E7%9A%84%E5%86%85%E5%AD%98%E6%B3%84%E6%BC%8F%E9%97%AE%E9%A2%98/