-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #61945 - Centril:rollup-xdqo2mn, r=Centril
Rollup of 11 pull requests Successful merges: - #61505 (Only show methods that appear in `impl` blocks in the Implementors sections of trait doc pages) - #61701 (move stray run-pass const tests into const/ folder) - #61748 (Tweak transparent enums and unions diagnostic spans) - #61802 (Make MaybeUninit #[repr(transparent)]) - #61839 (ci: Add a script for generating CPU usage graphs) - #61842 (Remove unnecessary lift calls) - #61843 (Turn down the myriad-closures test) - #61896 (rustc_typeck: correctly compute `Substs` for `Res::SelfCtor`.) - #61898 (syntax: Factor out common fields from `SyntaxExtension` variants) - #61938 (create an issue for miri even in status test-fail) - #61941 (Preserve generator and yield source for error messages) Failed merges: r? @ghost
- Loading branch information
Showing
109 changed files
with
966 additions
and
923 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
# A small script to help visualizing CPU usage over time data collected on CI | ||
# using `gnuplot`. | ||
# | ||
# This script is expected to be called with two arguments. The first is the full | ||
# commit SHA of the build you're interested in, and the second is the name of | ||
# the builder. For example: | ||
# | ||
# ./src/etc/cpu-usage-over-time-plot.sh e699ea096fcc2fc9ce8e8bcf884e11496a31cc9f i686-mingw-1 | ||
# | ||
# That will generate `$builder.png` in the current directory which you can open | ||
# up to see a hopefully pretty graph. | ||
# | ||
# Improvements to this script are greatly appreciated! | ||
|
||
set -ex | ||
|
||
bucket=rust-lang-ci-evalazure | ||
commit=$1 | ||
builder=$2 | ||
|
||
curl -O https://$bucket.s3.amazonaws.com/rustc-builds/$commit/cpu-$builder.csv | ||
|
||
gnuplot <<-EOF | ||
reset | ||
set timefmt '%Y-%m-%dT%H:%M:%S' | ||
set xdata time | ||
set ylabel "CPU Usage %" | ||
set xlabel "Time" | ||
set datafile sep ',' | ||
set term png size 3000,1000 | ||
set output "$builder.png" | ||
set grid | ||
f(x) = mean_y | ||
fit f(x) 'cpu-$builder.csv' using 1:(100-\$2) via mean_y | ||
set label 1 gprintf("Average = %g%%", mean_y) center font ",18" | ||
set label 1 at graph 0.50, 0.25 | ||
set xtics rotate by 45 offset -2,-2.4 300 | ||
set ytics 10 | ||
set boxwidth 0.5 | ||
plot \\ | ||
mean_y with lines linetype 1 linecolor rgb "#ff0000" title "average", \\ | ||
"cpu-$builder.csv" using 1:(100-\$2) with points pointtype 7 pointsize 0.4 title "$builder", \\ | ||
"" using 1:(100-\$2) smooth bezier linewidth 3 title "bezier" | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.