Auto merge of #15553 - Veykril:metrics-hyper, r=Veykril

Add hyper-0.14.18 to metrics

should give us a bit of async stuff
This commit is contained in:
bors 2023-09-03 09:42:32 +00:00
commit 2df30e1e07
3 changed files with 15 additions and 9 deletions

View file

@ -67,7 +67,7 @@ jobs:
other_metrics: other_metrics:
strategy: strategy:
matrix: matrix:
names: [self, ripgrep-13.0.0, webrender-2022, diesel-1.4.8] names: [self, ripgrep-13.0.0, webrender-2022, diesel-1.4.8, hyper-0.14.18]
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [setup_cargo, build_metrics] needs: [setup_cargo, build_metrics]
@ -133,10 +133,15 @@ jobs:
with: with:
name: diesel-1.4.8-${{ github.sha }} name: diesel-1.4.8-${{ github.sha }}
- name: Download hyper-0.14.18 metrics
uses: actions/download-artifact@v3
with:
name: hyper-0.14.18-${{ github.sha }}
- name: Combine json - name: Combine json
run: | run: |
git clone --depth 1 https://$METRICS_TOKEN@github.com/rust-analyzer/metrics.git git clone --depth 1 https://$METRICS_TOKEN@github.com/rust-analyzer/metrics.git
jq -s ".[0] * .[1] * .[2] * .[3] * .[4]" build.json self.json ripgrep-13.0.0.json webrender-2022.json diesel-1.4.8.json -c >> metrics/metrics.json jq -s ".[0] * .[1] * .[2] * .[3] * .[4] * .[5]" build.json self.json ripgrep-13.0.0.json webrender-2022.json diesel-1.4.8.json hyper-0.14.18.json -c >> metrics/metrics.json
cd metrics cd metrics
git add . git add .
git -c user.name=Bot -c user.email=dummy@example.com commit --message 📈 git -c user.name=Bot -c user.email=dummy@example.com commit --message 📈

View file

@ -114,6 +114,7 @@ pub enum MeasurementType {
AnalyzeRipgrep, AnalyzeRipgrep,
AnalyzeWebRender, AnalyzeWebRender,
AnalyzeDiesel, AnalyzeDiesel,
AnalyzeHyper,
} }
impl FromStr for MeasurementType { impl FromStr for MeasurementType {
@ -125,6 +126,7 @@ impl FromStr for MeasurementType {
"ripgrep-13.0.0" => Ok(Self::AnalyzeRipgrep), "ripgrep-13.0.0" => Ok(Self::AnalyzeRipgrep),
"webrender-2022" => Ok(Self::AnalyzeWebRender), "webrender-2022" => Ok(Self::AnalyzeWebRender),
"diesel-1.4.8" => Ok(Self::AnalyzeDiesel), "diesel-1.4.8" => Ok(Self::AnalyzeDiesel),
"hyper-0.14.18" => Ok(Self::AnalyzeHyper),
_ => Err("Invalid option".to_string()), _ => Err("Invalid option".to_string()),
} }
} }
@ -137,6 +139,7 @@ impl AsRef<str> for MeasurementType {
Self::AnalyzeRipgrep => "ripgrep-13.0.0", Self::AnalyzeRipgrep => "ripgrep-13.0.0",
Self::AnalyzeWebRender => "webrender-2022", Self::AnalyzeWebRender => "webrender-2022",
Self::AnalyzeDiesel => "diesel-1.4.8", Self::AnalyzeDiesel => "diesel-1.4.8",
Self::AnalyzeHyper => "hyper-0.14.18",
} }
} }
} }

View file

@ -39,13 +39,10 @@ impl flags::Metrics {
MeasurementType::AnalyzeSelf => { MeasurementType::AnalyzeSelf => {
metrics.measure_analysis_stats_self(sh)?; metrics.measure_analysis_stats_self(sh)?;
} }
MeasurementType::AnalyzeRipgrep => { MeasurementType::AnalyzeRipgrep
metrics.measure_analysis_stats(sh, name)?; | MeasurementType::AnalyzeWebRender
} | MeasurementType::AnalyzeDiesel
MeasurementType::AnalyzeWebRender => { | MeasurementType::AnalyzeHyper => {
metrics.measure_analysis_stats(sh, name)?;
}
MeasurementType::AnalyzeDiesel => {
metrics.measure_analysis_stats(sh, name)?; metrics.measure_analysis_stats(sh, name)?;
} }
}; };
@ -57,6 +54,7 @@ impl flags::Metrics {
metrics.measure_analysis_stats(sh, MeasurementType::AnalyzeRipgrep.as_ref())?; metrics.measure_analysis_stats(sh, MeasurementType::AnalyzeRipgrep.as_ref())?;
metrics.measure_analysis_stats(sh, MeasurementType::AnalyzeWebRender.as_ref())?; metrics.measure_analysis_stats(sh, MeasurementType::AnalyzeWebRender.as_ref())?;
metrics.measure_analysis_stats(sh, MeasurementType::AnalyzeDiesel.as_ref())?; metrics.measure_analysis_stats(sh, MeasurementType::AnalyzeDiesel.as_ref())?;
metrics.measure_analysis_stats(sh, MeasurementType::AnalyzeHyper.as_ref())?;
"all" "all"
} }
}; };