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); }
private void ExportAllCSV() { IEnumerable <CompileTimeKeyframe> allKeyframes = CompileTimeTracker.GetCompileTimeHistory(); ExportCSV(allKeyframes, "all_compile_times"); }