WoW:API gcinfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(gccollect)
 
m (Move page script moved page API gcinfo to API gcinfo without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
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().
{{wowlua}}
 
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).

Latest revision as of 04:45, 15 August 2023

WoW Lua


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

local memoryInUse = gcinfo()


Arguments[edit]

None


Returns[edit]

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