Returns the total Lua memory usage. Deprecated in Lua 5.1; use collectgarbage("count") instead.


See also Lua library functions.

Signature:

count = gcinfo()

Returns:

  • count - Total Lua memory usage (in kilobytes) (number)
This function is deprecated and is no longer in use
This function is defined in the Lua standard libraries