WoW:API gcinfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
(Reformatted according to the current API boilerplate.)
Line 1: Line 1:
{{Stub/API}}
{{wowapi}} __NOTOC__
{{wowapi}}
 
API gcinfo() return the number of KB used. Note that even if you set a reference to '''nil''', it will not erase the object until you call gccollect().
 
Returns the amount of memory in use by Lua (in kilobytes).
local memoryInUse = gcinfo()
 
 
== Arguments ==
:None
 
 
== Returns ==
:;memoryInUse : Number - The amount of memory in use (in kilobytes).

Revision as of 13:38, 12 June 2007

WoW API < gcinfo


Returns the amount of memory in use by Lua (in kilobytes).

local memoryInUse = gcinfo()


Arguments

None


Returns

memoryInUse
Number - The amount of memory in use (in kilobytes).