WoW:API gcinfo: Difference between revisions

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

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).