Executes the specified action on the garbage collector.
Valid actions are collect
, stop
, restart
, count
, step
, setpause
, setstepmul
and isrunning
.
isrunning
is only available on the x86-64 versions, because of the difference in the LuaJIT version. See herestep
, setpause
and setstepmul
.If the action is setpause this is the previous value for the GC's pause. If the action is setstepmul this is the previous value for the GC's step.
The current floored dynamic memory usage of Lua, in kilobytes.