Returns the amount of memory used by an addon. The value returned is from a cache only updated when calling UpdateAddOnMemoryUsage().


See also Debugging and Profiling functions.

Signature:

mem = GetAddOnMemoryUsage("name") or GetAddOnMemoryUsage(index)

Arguments:

  • name - Name of an addon (name of the addon's folder and TOC file, not the Title found in the TOC) (string)
  • index - Index of an addon in the addon list (between 1 and GetNumAddOns()) (number)

Returns:

  • mem - Memory usage of the addon (in kilobytes) (number)