Files
wow_Meta/api/GetFunctionCPUUsage.lua

10 lines
694 B
Lua

---@diagnostic disable: missing-return, lowercase-global
---@meta
---@param func function
---@param includeSubroutines boolean #True to include time spent in other functions called by the given function; false to count only time spent in the function body (boolean)
---@return number usage #Amount of CPU time used by the function (in milliseconds) since the UI was loaded or ResetCPUUsage() was last called (number)
---@return number calls #Number of times the function has been called (number)
---Returns information about CPU usage by a function. Only returns valid data if the scriptProfile CVar is set to 1; returns 0 otherwise.
function GetFunctionCPUUsage(func, includeSubroutines) end