Returns information about the CPU usage of an event. Only returns valid data if the scriptProfile CVar is set to 1; returns 0 otherwise.
See also Debugging and Profiling functions.
Signature:
usage, numEvents = GetEventCPUUsage(["event"])
Arguments:
event- Name of an event; if omitted, returns usage information for all events (string)
Returns:
usage- Amount of CPU time used by handlers for the event (in milliseconds) since the UI was loaded orResetCPUUsage()was last called (number)numEvents- Number of times the event has fired this session (number)