private static void HandleEditorStartedCompiling() { CompileTimeTracker._data.StartTime = TrackingUtil.GetMilliseconds(); UnityConsoleCountsByType countsByType = UnityEditorConsoleUtil.GetCountsByType(); CompileTimeTracker.StoredErrorCount = countsByType.errorCount; }
private static void HandleEditorFinishedCompiling() { int elapsedTime = TrackingUtil.GetMilliseconds() - CompileTimeTracker._data.StartTime; UnityConsoleCountsByType countsByType = UnityEditorConsoleUtil.GetCountsByType(); bool hasErrors = (countsByType.errorCount - CompileTimeTracker.StoredErrorCount) > 0; CompileTimeKeyframe keyframe = new CompileTimeKeyframe(elapsedTime, hasErrors); CompileTimeTracker._data.AddCompileTimeKeyframe(keyframe); CompileTimeTracker.KeyframeAdded.Invoke(keyframe); }