示例#1
0
        private IEnumerable <CompileTimeKeyframe> GetFilteredKeyframes()
        {
            IEnumerable <CompileTimeKeyframe> filteredKeyframes = CompileTimeTracker.GetCompileTimeHistory();

            if (!CompileTimeTrackerWindow.ShowErrors)
            {
                filteredKeyframes = filteredKeyframes.Where(keyframe => !keyframe.hadErrors);
            }

            if (CompileTimeTrackerWindow.OnlyToday)
            {
                filteredKeyframes = filteredKeyframes.Where(keyframe => DateTimeUtil.SameDay(keyframe.Date, DateTime.Now));
            }
            else if (CompileTimeTrackerWindow.OnlyYesterday)
            {
                filteredKeyframes = filteredKeyframes.Where(keyframe => DateTimeUtil.SameDay(keyframe.Date, DateTime.Now.AddDays(-1)));
            }

            return(filteredKeyframes);
        }
示例#2
0
        private void ExportAllCSV()
        {
            IEnumerable <CompileTimeKeyframe> allKeyframes = CompileTimeTracker.GetCompileTimeHistory();

            ExportCSV(allKeyframes, "all_compile_times");
        }