internal static void StartTick(TickType type) { if (!isRunning) { return; } if (Ticks.Count == tickHistory) { Ticks.Dequeue(); } ProfilerTick tick = new ProfilerTick() { Type = type, Frame = Time.frameCount, EventId = EventIdCounter }; EventIdCounter++; Ticks.Enqueue(tick); CurrentTick = tick; }