API:gcinfo

Function gcinfo is deprecated; use collectgarbage("count") instead.

Returns the total memory in use by Lua (in Kbytes).

Arguments

 * None

Returns

 * usage
 * number - total memory in use by Lua in Kbytes.

Related Functions

 * collectgarbage