Fandom

WoWWiki

API GetAddOnCPUUsage

104,634pages on
this wiki
Add New Page
Talk1 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetAddOnCPUUsage

Returns the total time used by the specified AddOn.

time = GetAddOnCPUUsage(index|"name")


Arguments Edit

(index|"name")
index 
Number - Numeric AddOn index
"name" 
String - AddOn name


Returns Edit

time 
Number - The total time used by the specified AddOn, in milliseconds.


Details Edit

The function returns a cached value calculated by UpdateAddOnCPUUsage(). The time is the sum of GetFunctionCPUUsage(f, false) for all functions f created on behalf of the AddOn. These functions include both functions created directly by the AddOn itself, as well as functions created by external functions that where called by the AddOn. That means even though an external function does not belong to an AddOn, functions created by that external function are attributed to the calling AddOn.

Also on Fandom

Random Wiki