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

8
api/GetFrameCPUUsage.lua Normal file
View File

@@ -0,0 +1,8 @@
---@diagnostic disable: missing-return, lowercase-global
---@param frame table
---@param includeChildren boolean
---@return number usage
---@return number calls
---Returns information about CPU usage by a frame's script handlers. Only returns valid data if the scriptProfile CVar was set to 1 on last UI reload; returns 0 otherwise. OnUpdate CPU usage is not included (tested at ver 6.0.3). Other scripts (e.g. OnEvent, OnShow) are included. Note that the CPU time is the sum of the time spent in the frame's CURRENT script handler functions, so if you change the handlers, or nil them out, the reported CPU time will change.
function GetFrameCPUUsage(frame, includeChildren) end