diff --git a/Plugins/BenchmarkTool/BenchmarkTool+Baselines.swift b/Plugins/BenchmarkTool/BenchmarkTool+Baselines.swift index e9fb675..6a007bf 100644 --- a/Plugins/BenchmarkTool/BenchmarkTool+Baselines.swift +++ b/Plugins/BenchmarkTool/BenchmarkTool+Baselines.swift @@ -107,9 +107,11 @@ struct BenchmarkBaseline: Codable { /// Represents a particular execution of a specific benchmark /// and its set of results. struct Profile: Codable { + var benchmark: Benchmark var results: [BenchmarkResult] - init(results: [BenchmarkResult] = []) { + init(benchmark: Benchmark, results: [BenchmarkResult] = []) { + self.benchmark = benchmark self.results = results } } diff --git a/Plugins/BenchmarkTool/BenchmarkTool.swift b/Plugins/BenchmarkTool/BenchmarkTool.swift index 17eab3e..cb40bdd 100644 --- a/Plugins/BenchmarkTool/BenchmarkTool.swift +++ b/Plugins/BenchmarkTool/BenchmarkTool.swift @@ -306,6 +306,7 @@ struct BenchmarkTool: AsyncParsableCommand { for result in results { benchmarkResults[result.key] = BenchmarkBaseline.Profile( + benchmark: benchmark, results: result.value ) }