Wikia

WoWWiki

API GetAddOnCPUUsage

Talk1
98,461pages on
this wiki
Revision as of 12:52, October 1, 2008 by Tifi (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

Returns the total time used by the specified AddOn.

time = GetAddOnCPUUsage(index|"name")


Arguments

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


Returns

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


Details

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.
Advertisement | Your ad here

Photos

Add a Photo
61,979photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki