WoW:API gcinfo: Difference between revisions

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