Initial commit

This commit is contained in:
2024-12-16 13:13:08 +01:00
commit c8d4f32d5d
3093 changed files with 18304 additions and 0 deletions

7
api/GetAddOnCPUUsage.lua Normal file
View File

@@ -0,0 +1,7 @@
---@diagnostic disable: missing-return, lowercase-global
---@param name string
---@param index number
---@return number usage
---Returns the amount of CPU time used by an addon. Only returns valid data if the scriptProfile CVar is set to 1; returns 0 otherwise. The value returned is from a cache only updated when calling UpdateAddOnCPUUsage(). This value is the sum of GetFunctionCPUUsage() for all functions created on the addon's behalf -- note that if the addon calls external functions which in turn create new functions, the new functions are considered to belong to the addon.
function GetAddOnCPUUsage(name, index) end