13 references to Sum
AnalyzerRunner (1)
DiagnosticAnalyzerRunner.cs (1)
126var sumOfDocumentAverages = documentPerformance.Where(x => x.Key.ProjectId == projectId).Sum(x => x.Value.EditsPerSecond);
Microsoft.CodeAnalysis (4)
CommandLine\ReportAnalyzerUtil.cs (3)
73var totalAnalyzerExecutionTime = analyzerDriver.AnalyzerExecutionTimes.Sum(kvp => kvp.Value.TotalSeconds); 86var executionTime = analyzerGroup.Sum(kvp => kvp.Value.TotalSeconds); 133var executionTime = generatorGroup.Sum(x => x.ElapsedTime.TotalSeconds);
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
899totalAnalyzerExecutionTime = AnalyzerExecutionTimes.Sum(kvp => kvp.Value.TotalSeconds);
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MeasurementExtensions.cs (1)
76IEnumerable<CollectedMeasurement<double>> l => (T)(object)l.Sum(m => m.Value),
Microsoft.ML.FastTree (1)
Utils\LinqExtensions.cs (1)
270double total = values.Sum(value => Math.Exp(value - max));
Microsoft.ML.TimeSeries (2)
SrCnnEntireAnomalyDetector.cs (2)
943double sumY = values.Sum(item => item.Item2); 945double sumXY = values.Sum(item => item.Item1 * item.Item2);
RunTests (4)
AssemblyScheduler.cs (3)
177var totalExpectedRunTime = TimeSpan.FromMilliseconds(updated.Values.SelectMany(types => types).SelectMany(type => type.Tests).Sum(test => test.ExecutionTime.TotalMilliseconds)); 277var totalExecutionTime = TimeSpan.FromMilliseconds(workItem.Filters.Values.SelectMany(f => f).Sum(f => f.ExecutionTime.TotalMilliseconds)); 296var assemblyRuntime = TimeSpan.FromMilliseconds(assembly.Value.Sum(f => f.ExecutionTime.TotalMilliseconds));
TestHistoryManager.cs (1)
122var totalTestRuntime = TimeSpan.FromMilliseconds(testInfos.Values.Sum(t => t.TotalMilliseconds));