WoW:API GetAddOnCPUUsage: Difference between revisions
Jump to navigation
Jump to search
(→Returns: time is returned in seconds, not milliseconds) |
m (Move page script moved page API GetAddOnCPUUsage to API GetAddOnCPUUsage without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 17: | Line 17: | ||
== Returns == | == Returns == | ||
:;time : Number - The total time used by the specified AddOn, in | :;time : Number - The total time used by the specified AddOn, in milliseconds. | ||
== Details == | == 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. | : 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. |
Latest revision as of 04:45, 15 August 2023
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.