wowpedia
Main Menu


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

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.