Exemple #1
0
        private static void HandleEditorStartedCompiling()
        {
            CompileTimeTracker._data.StartTime = TrackingUtil.GetMilliseconds();

            UnityConsoleCountsByType countsByType = UnityEditorConsoleUtil.GetCountsByType();

            CompileTimeTracker.StoredErrorCount = countsByType.errorCount;
        }
Exemple #2
0
        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);
        }