Skip to content

Commit 2adf1d2

Browse files
committed
Store toolchain in BenchmarkSuite
1 parent 57def45 commit 2adf1d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

collector/src/runtime/benchmark.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ pub struct BenchmarkGroup {
3131
/// A collection of benchmark suites gathered from a directory.
3232
#[derive(Debug)]
3333
pub struct BenchmarkSuite {
34+
/// Toolchain used to compile this suite.
35+
pub toolchain: Toolchain,
3436
pub groups: Vec<BenchmarkGroup>,
3537
/// This field holds onto a temporary directory containing the compiled binaries with the
3638
/// runtime benchmarks. It is only stored here in order not to be dropped too soon.
@@ -42,11 +44,13 @@ impl BenchmarkSuite {
4244
/// that matches the filter.
4345
pub fn filter(self, filter: &BenchmarkFilter) -> Self {
4446
let BenchmarkSuite {
47+
toolchain,
4548
groups,
4649
_tmp_artifacts_dir,
4750
} = self;
4851

4952
Self {
53+
toolchain,
5054
groups: groups
5155
.into_iter()
5256
.filter(|group| {
@@ -214,6 +218,7 @@ pub fn prepare_runtime_benchmark_suite(
214218

215219
Ok(BenchmarkSuiteCompilation {
216220
suite: BenchmarkSuite {
221+
toolchain: toolchain.clone(),
217222
groups,
218223
_tmp_artifacts_dir: temp_dir,
219224
},

0 commit comments

Comments
 (0)