WoW:API collectgarbage
Sets garbage collection limit and calls the garbage collector if the Lua byte counter exceeds this limit.
collectgarbage({limit})
Parameters
Arguments
- ({limit})
- limit
- Number - GC limit (in KiB). If omitted, defaults to zero, forcing garbage collection.
Example
collectgarbage() -- Force garbage collection collectgarbage(131072) -- Set GC limit to 128 MiB