1
1
<!doctype html>
2
2
< html >
3
+
3
4
< head >
4
5
< meta charset ="utf-8 ">
5
6
< link rel ="stylesheet " href ="uPlot.min.css ">
42
43
white-space : pre;
43
44
font-family : monospace;
44
45
}
46
+
45
47
body {
46
48
padding : 1em ;
47
49
margin : 0 ;
51
53
< script src ="shared.js "> </ script >
52
54
< title > rustc performance data</ title >
53
55
</ head >
56
+
54
57
< body >
55
58
< div > > < a href ="index.html "> graphs</ a > , < a href ="compare.html "> compare</ a > ,
56
59
< a href ="dashboard.html "> dashboard</ a > , < a href ="bootstrap.html "> bootstrap</ a > ,
57
- < a href ="status.html "> status</ a > , < a href ="help.html "> help</ a > .</ div >
60
+ < a href ="status.html "> status</ a > , < a href ="help.html "> help</ a > .
61
+ </ div >
58
62
< div id ="settings ">
59
63
start: < input placeholder ="yyyy-mm-dd or commit " id ="start-bound " />
60
64
end: < input placeholder ="yyyy-mm-dd or commit " id ="end-bound " />
64
68
See < a href ="/compare.html "> compare page</ a > for descriptions of what
65
69
the names mean.
66
70
</ div >
67
- < div id ="loading "> < h2 > Loading & rendering data..</ h2 > < h3 > This may take a while!</ h3 > </ div >
71
+ < div id ="loading ">
72
+ < h2 > Loading & rendering data..</ h2 >
73
+ < h3 > This may take a while!</ h3 >
74
+ </ div >
68
75
< div id ="charts "> </ div >
69
76
< div id ="as-of "> </ div >
70
77
< a href ="https://github.com/rust-lang-nursery/rustc-perf ">
71
- < img style ="position: absolute; top: 0; right: 0; border: 0; " src ="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67 " alt ="Fork me on GitHub " data-canonical-src ="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png ">
78
+ < img style ="position: absolute; top: 0; right: 0; border: 0; "
79
+ src ="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67 "
80
+ alt ="Fork me on GitHub "
81
+ data-canonical-src ="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png ">
72
82
</ a >
73
83
74
84
< script >
75
- function tooltipPlugin ( { onclick, commits, shiftX = 10 , shiftY = 10 } ) {
85
+ function tooltipPlugin ( { onclick, commits, shiftX = 10 , shiftY = 10 } ) {
76
86
let tooltipLeftOffset = 0 ;
77
87
let tooltipTopOffset = 0 ;
78
88
108
118
showTooltip ( ) ;
109
119
110
120
let top = u . valToPos ( u . data [ seriesIdx ] [ dataIdx ] , 'y' ) ;
111
- let lft = u . valToPos ( u . data [ 0 ] [ dataIdx ] , 'x' ) ;
121
+ let lft = u . valToPos ( u . data [ 0 ] [ dataIdx ] , 'x' ) ;
112
122
113
- tooltip . style . top = ( tooltipTopOffset + top + shiftX ) + "px" ;
123
+ tooltip . style . top = ( tooltipTopOffset + top + shiftX ) + "px" ;
114
124
tooltip . style . left = ( tooltipLeftOffset + lft + shiftY ) + "px" ;
115
125
116
126
tooltip . textContent = (
117
127
fmtDate ( new Date ( u . data [ 0 ] [ dataIdx ] * 1e3 ) ) + " - " +
118
- commits [ dataIdx ] [ 1 ] . slice ( 0 , 10 ) + "\n" +
128
+ commits [ dataIdx ] [ 1 ] . slice ( 0 , 10 ) + "\n" +
119
129
u . series [ seriesIdx ] . label + ": " +
120
- u . data [ seriesIdx ] [ dataIdx ] / 1e9 + " seconds"
130
+ u . data [ seriesIdx ] [ dataIdx ] / 1e9 + " seconds"
121
131
) ;
122
132
}
123
133
177
187
} ;
178
188
}
179
189
180
- function genPlotOpts ( { title, width, height, yAxisLabel, series, commits, alpha = 0.3 , prox = 5 } ) {
190
+ function genPlotOpts ( { title, width, height, yAxisLabel, series, commits, alpha = 0.3 , prox = 5 } ) {
181
191
return {
182
192
title,
183
193
width,
199
209
} ,
200
210
} ,
201
211
axes : [
202
- { } ,
212
+ { } ,
203
213
{
204
214
label : yAxisLabel ,
205
215
space : 24 ,
206
216
values : ( self , splits ) => {
207
- return splits . map ( v => v / 1e9 + " sec" ) ;
217
+ return splits . map ( v => v / 1e9 + " sec" ) ;
208
218
} ,
209
219
} ,
210
220
] ,
211
221
plugins : [
212
222
tooltipPlugin ( {
213
223
onclick ( u , seriesIdx , dataIdx ) {
214
224
let thisCommit = commits [ dataIdx ] [ 1 ] ;
215
- let prevCommit = ( commits [ dataIdx - 1 ] || [ null , null ] ) [ 1 ] ;
225
+ let prevCommit = ( commits [ dataIdx - 1 ] || [ null , null ] ) [ 1 ] ;
216
226
window . open ( `/compare.html?start=${ prevCommit } &end=${ thisCommit } ` ) ;
217
227
} ,
218
228
commits,
280
290
} ) ;
281
291
</ script >
282
292
</ body >
283
- </ html >
293
+
294
+ </ html >
0 commit comments