Skip to content

Commit

Permalink
Fix dotnet#2611 - Also choose time scale based on results
Browse files Browse the repository at this point in the history
  • Loading branch information
FlatlinerDOA committed Aug 11, 2024
1 parent 1d7a576 commit 0209d80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BenchmarkDotNet.Exporters.Plotting/ScottPlotExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public IEnumerable<string> ExportToFiles(Summary summary, ILogger consoleLogger)
var version = BenchmarkDotNetInfo.Instance.BrandTitle;
var annotations = GetAnnotations(version);

var (timeUnit, timeScale) = GetTimeUnit(summary.Reports.SelectMany(m => m.AllMeasurements));
var (timeUnit, timeScale) = GetTimeUnit(summary.Reports
.SelectMany(m => m.AllMeasurements.Where(m => m.Is(IterationMode.Workload, IterationStage.Result))));

foreach (var benchmark in summary.Reports.GroupBy(r => r.BenchmarkCase.Descriptor.Type.Name))
{
Expand Down

0 comments on commit 0209d80

Please sign in to comment.