Skip to content

Commit af47db7

Browse files
committed
Slightly refactor default Profile selection
1 parent 90a4cb0 commit af47db7

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

collector/src/bin/collector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ fn main_result() -> anyhow::Result<i32> {
896896

897897
let compile_config = CompileBenchmarkConfig {
898898
benchmarks,
899-
profiles: Profile::all(),
899+
profiles: vec![Profile::Check, Profile::Debug, Profile::Doc, Profile::Opt],
900900
scenarios: Scenario::all(),
901901
iterations: runs.map(|v| v as usize),
902902
is_self_profile: self_profile.self_profile,

collector/src/compile/benchmark/profile.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ pub enum Profile {
1717

1818
impl Profile {
1919
pub fn all() -> Vec<Self> {
20-
vec![Profile::Check, Profile::Debug, Profile::Doc, Profile::Opt]
21-
}
22-
23-
// This also leaves Clippy out
24-
pub fn all_non_doc() -> Vec<Self> {
25-
vec![Profile::Check, Profile::Debug, Profile::Opt]
20+
vec![
21+
Profile::Check,
22+
Profile::Debug,
23+
Profile::Doc,
24+
Profile::Opt,
25+
Profile::Clippy,
26+
]
2627
}
2728
}

0 commit comments

Comments
 (0)