Garry's Mod Wiki

gcinfo

  number gcinfo()

Description

We advise against using this. It may be changed or removed in a future update. This function was deprecated in Lua 5.1 and is removed in Lua 5.2. Use collectgarbage( "count" ) instead.

Returns the current floored dynamic memory usage of Lua in kilobytes.

Returns

1 number
The current floored dynamic memory usage of Lua, in kilobytes.