public IEnumerable <Metric> ProcessResults(DiagnoserResults diagnoserResults) { if (results.TryGetValue(diagnoserResults.BenchmarkCase, out var disassemblyResult)) { yield return(new Metric(NativeCodeSizeMetricDescriptor.Instance, SumNativeCodeSize(disassemblyResult))); } }
public IEnumerable <Metric> ProcessResults(DiagnoserResults diagnoserResults) { yield return(new Metric(GarbageCollectionsMetricDescriptor.Gen0, diagnoserResults.GcStats.Gen0Collections / (double)diagnoserResults.GcStats.TotalOperations * 1000)); yield return(new Metric(GarbageCollectionsMetricDescriptor.Gen1, diagnoserResults.GcStats.Gen1Collections / (double)diagnoserResults.GcStats.TotalOperations * 1000)); yield return(new Metric(GarbageCollectionsMetricDescriptor.Gen2, diagnoserResults.GcStats.Gen2Collections / (double)diagnoserResults.GcStats.TotalOperations * 1000)); yield return(new Metric(AllocatedMemoryMetricDescriptor.Instance, diagnoserResults.GcStats.BytesAllocatedPerOperation)); }
public IEnumerable <Metric> ProcessResults(DiagnoserResults results) { Task.WaitAll(collectingTask); if (benchmarkToTraceFile.TryGetValue(results.BenchmarkCase, out var traceFilePath)) { benchmarkToTraceFile[results.BenchmarkCase] = SpeedScopeExporter.Convert(traceFilePath, results.BenchmarkCase.Config.GetCompositeLogger()); } return(Array.Empty <Metric>()); }
public IEnumerable <Metric> ProcessResults(DiagnoserResults _) => Array.Empty <Metric>();
public void ProcessResults(DiagnoserResults results) => diagnosers.ForEach(diagnoser => diagnoser.ProcessResults(results));
public void ProcessResults(DiagnoserResults results) => this.results.Add(results.Benchmark, results.GcStats);
public void ProcessResults(DiagnoserResults _) { }
public IEnumerable <Metric> ProcessResults(DiagnoserResults results) { yield return(new Metric(CompletedWorkItemCountMetricDescriptor.Instance, results.ThreadingStats.CompletedWorkItemCount / (double)results.ThreadingStats.TotalOperations)); yield return(new Metric(LockContentionCountMetricDescriptor.Instance, results.ThreadingStats.LockContentionCount / (double)results.ThreadingStats.TotalOperations)); }
public void ProcessResults(DiagnoserResults diagnoserResults) => results.Add(diagnoserResults.BenchmarkCase, diagnoserResults.GcStats);
public IEnumerable <Metric> ProcessResults(DiagnoserResults results) => diagnosers.SelectMany(diagnoser => diagnoser.ProcessResults(results));