11<!doctype html>  
22< html > 
3+ 
34< head > 
45    < meta  charset ="utf-8 "> 
56    < link  rel ="stylesheet " href ="uPlot.min.css "> 
4243            white-space :  pre;
4344            font-family :  monospace;
4445        }
46+ 
4547        body  {
4648            padding :  1em  ;
4749            margin :  0 ;
5153    < script  src ="shared.js "> </ script > 
5254    < title > rustc performance data</ title > 
5355</ head > 
56+ 
5457< body > 
5558    < div > > < a  href ="index.html "> graphs</ a > , < a  href ="compare.html "> compare</ a > ,
5659        < 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 > 
5862    < div  id ="settings "> 
5963        start: < input  placeholder ="yyyy-mm-dd or commit " id ="start-bound " /> 
6064        end: < input  placeholder ="yyyy-mm-dd or commit " id ="end-bound " /> 
6670        See < a  href ="/compare.html "> compare page</ a >  for descriptions of what
6771        the names mean.
6872    </ div > 
69-     < div  id ="loading "> < h2 > Loading & rendering data..</ h2 > < h3 > This may take a while!</ h3 > </ div > 
73+     < div  id ="loading "> 
74+         < h2 > Loading & rendering data..</ h2 > 
75+         < h3 > This may take a while!</ h3 > 
76+     </ div > 
7077    < div  id ="charts "> </ div > 
7178    < div  id ="as-of "> </ div > 
7279    < a  href ="https://github.com/rust-lang-nursery/rustc-perf "> 
73-         < 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 "> 
80+         < img  style ="position: absolute; top: 0; right: 0; border: 0; "
81+             src ="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67 "
82+             alt ="Fork me on GitHub "
83+             data-canonical-src ="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png "> 
7484    </ a > 
7585
7686    < script > 
8494        const  otherCacheStateColors  =  [ "#8085e9" ,  "#f15c80" ,  "#e4d354" ,  "#2b908f" ,  "#f45b5b" ,  "#91e8e1" ] ; 
8595        const  interpolatedColor  =  "#fcb0f1" ; 
8696
87-         function  tooltipPlugin ( { onclick,  commits,  isInterpolated,  absoluteMode,  shiftX =  10 ,  shiftY =  10 } )  { 
97+         function  tooltipPlugin ( {   onclick,  commits,  isInterpolated,  absoluteMode,  shiftX =  10 ,  shiftY =  10   } )  { 
8898            let  tooltipLeftOffset  =  0 ; 
8999            let  tooltipTopOffset  =  0 ; 
90100
120130                showTooltip ( ) ; 
121131
122132                let  top  =  u . valToPos ( u . data [ seriesIdx ] [ dataIdx ] ,  'y' ) ; 
123-                 let  lft  =  u . valToPos ( u . data [          0 ] [ dataIdx ] ,  'x' ) ; 
133+                 let  lft  =  u . valToPos ( u . data [ 0 ] [ dataIdx ] ,  'x' ) ; 
124134
125-                 tooltip . style . top    =  ( tooltipTopOffset    +  top  +  shiftX )  +  "px" ; 
135+                 tooltip . style . top  =  ( tooltipTopOffset  +  top  +  shiftX )  +  "px" ; 
126136                tooltip . style . left  =  ( tooltipLeftOffset  +  lft  +  shiftY )  +  "px" ; 
127137
128138                tooltip . style . borderColor  =  isInterpolated ( dataIdx )  ?
139149                } 
140150                tooltip . textContent  =  ( 
141151                    fmtDate ( new  Date ( u . data [ 0 ] [ dataIdx ]  *  1e3 ) )  +  " - "  + 
142-                     commits [ dataIdx ] [ 1 ] . slice ( 0 , 10 )  +  "\n"  +  trailer 
152+                     commits [ dataIdx ] [ 1 ] . slice ( 0 ,   10 )  +  "\n"  +  trailer 
143153                ) ; 
144154            } 
145155
199209            } ; 
200210        } 
201211
202-         function  genPlotOpts ( { title,  width,  height,  yAxisLabel,  series,  commits, 
203-             stat,  isInterpolated,  alpha =  0.3 ,  prox =  5 ,  absoluteMode} )  { 
212+         function  genPlotOpts ( {   title,  width,  height,  yAxisLabel,  series,  commits, 
213+             stat,  isInterpolated,  alpha =  0.3 ,  prox =  5 ,  absoluteMode  } )  { 
204214            return  { 
205215                title, 
206216                width, 
238248                        values : ( self ,  splits )  =>  { 
239249                            return  splits . map ( v  =>  { 
240250                                return  ( 
241-                                     v  >=  1e12  ? v / 1e12  +  "T"  :
242-                                     v  >=  1e9    ? v / 1e9    +  "G"  :
243-                                     v  >=  1e6    ? v / 1e6    +  "M"  :
244-                                     v  >=  1e3    ? v / 1e3    +  "k"  :
245-                                     v 
251+                                     v  >=  1e12  ? v   /   1e12  +  "T"  :
252+                                          v  >=  1e9  ? v   /   1e9  +  "G"  :
253+                                              v  >=  1e6  ? v   /   1e6  +  "M"  :
254+                                                  v  >=  1e3  ? v   /   1e3  +  "k"  :
255+                                                      v 
246256                                ) ; 
247257                            } ) ; 
248258                        } , 
261271                                    ctx . strokeStyle  =  interpolatedColorWithAlpha ; 
262272                                    ctx . beginPath ( ) ; 
263273
264-                                     let  [   i0 ,  i1   ]  =  u . series [ 0 ] . idxs ; 
274+                                     let  [ i0 ,  i1 ]  =  u . series [ 0 ] . idxs ; 
265275
266276                                    for  ( let  j  =  i0 ;  j  <=  i1 ;  j ++ )  { 
267277                                        let  v  =  u . data [ 0 ] [ j ] ; 
282292                    tooltipPlugin ( { 
283293                        onclick ( u ,  seriesIdx ,  dataIdx )  { 
284294                            let  thisCommit  =  commits [ dataIdx ] [ 1 ] ; 
285-                             let  prevCommit  =  ( commits [ dataIdx - 1 ]  ||  [ null , null ] ) [ 1 ] ; 
295+                             let  prevCommit  =  ( commits [ dataIdx   -   1 ]  ||  [ null ,   null ] ) [ 1 ] ; 
286296                            window . open ( `/compare.html?start=${ prevCommit }  &end=${ thisCommit }  &stat=${ stat }  ` ) ; 
287297                        } , 
288298                        commits, 
393403                benchmarks [ name ]  =  { 
394404                    check : optInterpolated ( Check ) , 
395405                    debug : optInterpolated ( Debug ) , 
396-                     opt :    optInterpolated ( Opt ) , 
406+                     opt : optInterpolated ( Opt ) , 
397407                } 
398408            } ) ; 
399409
415425            window . location . search  =  params . toString ( ) ; 
416426        } 
417427
418-         load_state ( state  =>  { 
428+         loadState ( state  =>  { 
419429            let  values  =  Object . assign ( { } ,  { 
420430                start : "" , 
421431                end : "" , 
427437        } ) ; 
428438    </ script > 
429439</ body > 
430- </ html > 
440+ 
441+ </ html > 
0 commit comments