struct Luajit::LuaGC
- Luajit::LuaGC
- Struct
- Value
- Object
Overview
Controls the Lua Garbage Collector
Defined in:
luajit/lua_gc.crInstance Method Summary
-
#collect : Nil
Performs a full garbage-collection cycle
-
#count : Int32
Returns the current amount of memory (in KBs) in use by Lua
-
#count_bytes : Int32
Returns the remainder of dividing the current amount of bytes of memory in use by Lua by 1024
-
#restart : Nil
Restarts the garbage collector
-
#set_pause(data : Int32) : Int32
Sets data as the new value for the pause of the collector
-
#set_step_multiplier(data : Int32) : Int32
Sets data as the new value for the step multiplier of the collector
-
#step(size : Int32) : Int32
Performs an incremental step of garbage collection
-
#stop : Nil
Stops the garbage collector
Instance Method Detail
Returns the current amount of memory (in KBs) in use by Lua
Raises LuaError
if operation fails
Returns the remainder of dividing the current amount of bytes of memory in use by Lua by 1024
Raises LuaError
if operation fails
Sets data as the new value for the pause of the collector
Returns the previous value of the pause.
Raises LuaError
if operation fails
Sets data as the new value for the step multiplier of the collector
Returns the previous value of the step multiplier.
Raises LuaError
if operation fails