diff --git a/xtask/src/flags.rs b/xtask/src/flags.rs index 47d0ea254b..7720ad69fe 100644 --- a/xtask/src/flags.rs +++ b/xtask/src/flags.rs @@ -110,10 +110,10 @@ pub struct PublishReleaseNotes { #[derive(Debug)] pub enum MeasurementType { Build, - AnalyseSelf, - AnalyseRipgrep, - AnalyseWebRender, - AnalyseDiesel, + AnalyzeSelf, + AnalyzeRipgrep, + AnalyzeWebRender, + AnalyzeDiesel, } impl FromStr for MeasurementType { @@ -121,10 +121,10 @@ impl FromStr for MeasurementType { fn from_str(s: &str) -> Result { match s { "build" => Ok(Self::Build), - "self" => Ok(Self::AnalyseSelf), - "ripgrep" => Ok(Self::AnalyseRipgrep), - "webrender" => Ok(Self::AnalyseWebRender), - "diesel" => Ok(Self::AnalyseDiesel), + "self" => Ok(Self::AnalyzeSelf), + "ripgrep" => Ok(Self::AnalyzeRipgrep), + "webrender" => Ok(Self::AnalyzeWebRender), + "diesel" => Ok(Self::AnalyzeDiesel), _ => Err("Invalid option".to_string()), } } diff --git a/xtask/src/metrics.rs b/xtask/src/metrics.rs index d51dfb183f..6853742319 100644 --- a/xtask/src/metrics.rs +++ b/xtask/src/metrics.rs @@ -35,15 +35,15 @@ impl flags::Metrics { metrics.measure_build(sh)?; "build.json" } - MeasurementType::AnalyseSelf => { + MeasurementType::AnalyzeSelf => { metrics.measure_analysis_stats_self(sh)?; "self.json" } - MeasurementType::AnalyseRipgrep => { + MeasurementType::AnalyzeRipgrep => { metrics.measure_analysis_stats(sh, "ripgrep")?; "ripgrep.json" } - MeasurementType::AnalyseWebRender => { + MeasurementType::AnalyzeWebRender => { { // https://github.com/rust-lang/rust-analyzer/issues/9997 let _d = sh.push_dir("target/rustc-perf/collector/benchmarks/webrender"); @@ -52,7 +52,7 @@ impl flags::Metrics { metrics.measure_analysis_stats(sh, "webrender")?; "webrender.json" } - MeasurementType::AnalyseDiesel => { + MeasurementType::AnalyzeDiesel => { metrics.measure_analysis_stats(sh, "diesel/diesel")?; "diesel.json" }