no edit summary
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Control the garbage collector and query it for information. As of WoW 2.0, this is the same as the standard collectgarbage() in Lua, but prior to that it was quite different. | |||
collectgarbage(opt [, arg]) | collectgarbage(opt [, arg]) | ||
| Line 26: | Line 22: | ||
collectgarbage("count") -- return kilobytes of memory in use, i.e. 2048 for 2 megabytes | collectgarbage("count") -- return kilobytes of memory in use, i.e. 2048 for 2 megabytes | ||
__NOTOC__ | __NOTOC__ | ||