We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd4bec commit 269a9e0Copy full SHA for 269a9e0
modules/scheduler/src/SchedulerProfiling.lua
@@ -26,9 +26,12 @@ local mainThreadIdCounter: number = 0
26
local INITIAL_EVENT_LOG_SIZE = 131072
27
local MAX_EVENT_LOG_SIZE = 524288 -- Equivalent to 2 megabytes
28
29
+-- Strictly speaking, only the first element of an EventLog can be a reference to another EventLog.
30
+type EventLog = { EventLog | { number } }
31
+
32
local eventLogSize = 0
33
local eventLogBuffer = nil
-local eventLog = nil
34
+local eventLog: EventLog? = nil
35
local eventLogIndex = 1
36
37
local TaskStartEvent = 1
0 commit comments