Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Returns the memory used for an addon.

mem = GetAddOnMemoryUsage(index or name)

Arguments[]

index
number - The index from 1 to GetNumAddOns(). Note that you cannot query Blizzard addons by index.
name
string - The name of the addon (as in TOC/folder filename), case insensitive.

Returns[]

mem
number - Memory usage of the addon in kilobytes.

Details[]

  • This function returns a cached value calculated by UpdateAddOnMemoryUsage()
  • This function will raise an error if a secure Blizzard addon is queried.

Example[]

Prints the memory usage for all addons.

UpdateAddOnMemoryUsage()
for i = 1, GetNumAddOns() do
	local name = GetAddOnInfo(i)
	print(GetAddOnMemoryUsage(i), name)
end

Patch changes[]

Dragonflight Patch 10.1.0 (2023-05-02): Will now raise an error if a secure addon is queried.


Advertisement