File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ pub struct BenchmarkGroup {
31
31
/// A collection of benchmark suites gathered from a directory.
32
32
#[ derive( Debug ) ]
33
33
pub struct BenchmarkSuite {
34
+ /// Toolchain used to compile this suite.
35
+ pub toolchain : Toolchain ,
34
36
pub groups : Vec < BenchmarkGroup > ,
35
37
/// This field holds onto a temporary directory containing the compiled binaries with the
36
38
/// runtime benchmarks. It is only stored here in order not to be dropped too soon.
@@ -42,11 +44,13 @@ impl BenchmarkSuite {
42
44
/// that matches the filter.
43
45
pub fn filter ( self , filter : & BenchmarkFilter ) -> Self {
44
46
let BenchmarkSuite {
47
+ toolchain,
45
48
groups,
46
49
_tmp_artifacts_dir,
47
50
} = self ;
48
51
49
52
Self {
53
+ toolchain,
50
54
groups : groups
51
55
. into_iter ( )
52
56
. filter ( |group| {
@@ -214,6 +218,7 @@ pub fn prepare_runtime_benchmark_suite(
214
218
215
219
Ok ( BenchmarkSuiteCompilation {
216
220
suite : BenchmarkSuite {
221
+ toolchain : toolchain. clone ( ) ,
217
222
groups,
218
223
_tmp_artifacts_dir : temp_dir,
219
224
} ,
You can’t perform that action at this time.
0 commit comments