Code format

This commit is contained in:
2025-05-04 14:32:03 +02:00
parent c0337ef97f
commit 93b45ac12e
3012 changed files with 8372 additions and 9301 deletions

View File

@@ -1,8 +1,8 @@
---@diagnostic disable: missing-return, lowercase-global
---@param frame table
---@param includeChildren boolean
---@return number usage
---@return number calls
---@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
function GetFrameCPUUsage(frame, includeChildren) end