Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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[]
Patch 10.1.0 (2023-05-02): Will now raise an error if a secure addon is queried.