File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
site/frontend/src/pages/compare/compile Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,7 @@ Category: ${metadata.category}
73
73
if (metadata .iterations !== null ) {
74
74
tooltip += ` Iterations: ${metadata .iterations }\n ` ;
75
75
}
76
- if (testCase .profile === " opt" && metadata .release_profile !== null ) {
77
- const {lto, debug, codegen_units} = metadata .release_profile ;
76
+ const addMetadata = ({lto , debug , codegen_units }) => {
78
77
if (lto !== null ) {
79
78
tooltip += ` LTO: ${lto }\n ` ;
80
79
}
@@ -84,6 +83,9 @@ Category: ${metadata.category}
84
83
if (codegen_units !== null ) {
85
84
tooltip += ` Codegen units: ${codegen_units }\n ` ;
86
85
}
86
+ };
87
+ if (testCase .profile === " opt" && metadata .release_profile !== null ) {
88
+ addMetadata (metadata .release_profile );
87
89
}
88
90
89
91
return tooltip ;
You can’t perform that action at this time.
0 commit comments