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