Unreviewed build fix.
[WebKit-https.git] / Websites / perf.webkit.org / public / v2 / index.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <meta charset="utf-8">
5     <title>WebKit Performance Monitor (Beta)</title>
6     <script src="js/jquery.min.js" defer></script>
7     <script src="js/handlebars.js" defer></script>
8     <script src="js/ember.js" defer></script>
9     <script src="js/ember-data.js" defer></script>
10     <script src="js/d3/d3.min.js" defer></script>
11     <script src="js/statistics.js" defer></script>
12     <script src="data.js" defer></script>
13     <script src="app.js" defer></script>
14     <script src="manifest.js" defer></script>
15     <script src="analysis.js" defer></script>
16     <script src="popup.js" defer></script>
17     <script src="interactive-chart.js" defer></script>
18     <script src="commits-viewer.js" defer></script>
19     <link rel="stylesheet" href="app.css">
20     <link rel="stylesheet" href="chart-pane.css">
21
22     <script type="text/x-handlebars" data-template-name="index">
23         <header id="header">
24             {{partial "navbar"}}
25             {{view App.NumberOfDaysControlView tagName="ul" numberOfDays=numberOfDays}}
26             <ul class="controls">
27                 <li>
28                     <a href="#" class="control-button" {{action toggleEditMode}}>
29                         {{#if controller.editMode}}
30                             Finish editing
31                         {{else}}
32                             Edit
33                         {{/if}}
34                     </a>
35                 </li>
36             </ul>
37         </header>
38
39         <table {{bind-attr class=":dashboard editMode:editMode:readonly"}}>
40         <thead>
41             <tr>
42                 <td></td>
43                 {{#each headerColumns}}
44                     {{#if controller.editMode}}
45                         <th>
46                             <a href="#" title="Remove column" {{action "removeColumn" index}}>
47                                 {{partial "close-button"}}
48                             </a>
49                             {{input value=label}}
50                         </th>
51                     {{else}}
52                         <th>{{label}}</th>
53                     {{/if}}
54                 {{/each}}
55                 {{#if controller.editMode}}
56                     <td>{{input value=newColumnHeader action="addColumn" placeholder="Add a column"}}</td>
57                 {{/if}}
58             </tr>
59         </thead>
60         <tbody>
61             {{#each rows}}
62                 <tr>
63                     {{#if controller.editMode}}
64                         <th>
65                             <a href="#" title="Remove row" {{action "removeRow" this}}>
66                                 {{partial "close-button"}}
67                             </a>
68                             {{input value=header}}
69                         </th>
70                     {{else}}
71                         <th><span class="label">{{header}}</span></th>
72                     {{/if}}
73                     {{#each cells}}
74                         <td>
75                             {{#if empty}}
76                                 {{#if controller.editMode}}
77                                     {{view App.PopupView list=pickerData label='Choose'}}
78                                 {{/if}}
79                             {{else}}
80                                 {{#if chartData}}
81                                     {{#link-to 'charts' (query-params paneList=paneList)}}
82                                     {{interactive-chart
83                                         chartData=chartData
84                                         domain=controller.sharedDomain
85                                         enableSelection=false}}
86                                     {{/link-to}}
87                                 {{else}}
88                                     {{#if failure}}
89                                         <div class="failure">{{failure}}</div>
90                                     {{else}}
91                                         <div class="progress">{{partial "spinner"}}</div>
92                                     {{/if}}
93                                 {{/if}}
94                                 {{#if controller.editMode}}
95                                     <a href="#" title="Reset pane" class="reset" {{action "resetPane" this}}>
96                                         {{partial "close-button"}}
97                                     </a>
98                                 {{/if}}
99                             {{/if}}
100                         </td>
101                     {{/each}}
102                     {{#if controller.editMode}}
103                         <td></td>
104                     {{/if}}
105                 </tr>
106             {{/each}}
107             {{#if controller.editMode}}
108                 <tr>
109                     <td>{{input value=newRowHeader action="addRow" placeholder="Add a row"}}</td>
110                     {{#each emptyRow}}
111                         <td></td>
112                     {{/each}}
113                     <td></td>
114                 </tr>
115             {{/if}}
116         </tbody>
117         </table>
118     </script>
119
120     <script type="text/x-handlebars" data-template-name="charts">
121         <header id="header">
122             {{partial "navbar"}}
123             <ul class="controls">
124                 <li>{{view App.PopupView list=platforms label='Add pane'}}</li>
125             </ul>
126             <ul class="controls">
127                 <li>{{view App.StartTimeSliderView startTime=startTime oldestStartTime=oldestStartTime}}</li>
128             </ul>
129         </header>
130
131         {{#each panes itemController="pane"}}
132             <section class="chart-pane" tabindex="0">
133                 <header>
134                     <h1 {{action "toggleDetails"}}>{{metric.fullName}} - {{ platform.name}}</h1>
135                     <a href="#" title="Close" class="close-button" {{action "close"}}>{{partial "close-button"}}</a>
136                     {{#if App.Manifest.bugTrackers}}
137                         <a href="#" title="Analysis" class="bugs-button" {{action "toggleBugsPane"}}>
138                             {{partial "analysis-button"}}
139                         </a>
140                     {{/if}}
141                     {{#if App.Manifest.repositoriesWithReportedCommits}}
142                         <a href="#" title="Search" class="search-button" {{action "toggleSearchPane"}}>{{partial "search-button"}}</a>
143                     {{/if}}
144                 </header>
145
146                 <div class="body">
147                     <div class="svg-container">
148                     {{#if chartData}}
149                         {{interactive-chart
150                             chartData=chartData
151                             ranges=analyticRanges
152                             domain=mainPlotDomain
153                             interactive=true
154                             chartPointRadius=2
155                             currentItem=currentItem
156                             currentTime=sharedTime
157                             selectedItem=selectedItem
158                             highlightedItems=highlightedItems
159                             rangeRoute="analysisTask"
160                             selection=timeRange
161                             selectedPoints=selectedPoints
162                             selectionIsLocked=timeRangeIsLocked
163                             markedPoints=markedPoints
164                             zoom="zoomed"}}
165                     {{else}}
166                         {{#if failure}}
167                             <div class="failure">{{failure}}</div>
168                         {{else}}
169                             <div class="progress">{{partial "spinner"}}</div>
170                         {{/if}}
171                     {{/if}}
172                     </div>
173                     <div class="details">
174                         <div class="overview">
175                         {{#if chartData}}
176                             {{interactive-chart
177                                 chartData=chartData
178                                 showYAxis=false
179                                 domain=overviewDomain
180                                 selection=overviewSelection}}
181                         {{/if}}
182                         </div>
183                         {{#if details}}
184                             {{partial "chart-details"}}
185                         {{/if}}
186                     </div>
187                 </div>
188
189                 <form {{bind-attr class=":search-pane showingSearchPane::hidden"}}>
190                     <span class="repositories">
191                         {{view Ember.Select content=App.Manifest.repositoriesWithReportedCommits
192                             optionLabelPath='content.id'
193                             selection=commitSearchRepository}}
194                     </span>
195                     {{input action="searchCommit" placeholder="Name or email" value=commitSearchKeyword}}
196                 </form>
197
198                 <div {{bind-attr class=":analysis-pane showingAnalysisPane::hidden"}}>
199                     <table>
200                         <tbody>
201                             <tr>
202                                 <th>
203                                     <label>Name: {{input type=text value=newAnalysisTaskName}}</label>
204                                     <button {{action "createAnalysisTask"}} {{bind-attr disabled=cannotAnalyze}}>Analyze</button>
205                                 </th>
206                             </tr>
207                         </tbody>
208                     </table>
209                 </div>
210
211             </section>
212         {{/each}}
213     </script>
214
215     <script type="text/x-handlebars" data-template-name="components/interactive-chart">
216         {{#if interactive}}
217             <div class="selection-toolbar" style="display: none;">
218                 <a href="#" class="button" {{action "zoom"}}>
219                     <svg class="zoom" viewBox="0 0 100 100">
220                         <g stroke-width="0" stroke="none">
221                             <polygon points="25,25 5,50 25,75"/>
222                             <polygon points="75,25 95,50 75,75"/>
223                         </g>
224                         <line x1="20" y1="50" x2="80" y2="50" stroke-width="10"></line>
225                     </svg>
226                 </a>
227             </div>
228         {{/if}}
229         <div class="rangeBarsContainerInlineStyle">
230             {{#each rangeBars}}
231                 {{#link-to linkRoute linkId title=label}}
232                     <span class="rangeBar" {{bind-attr style=inlineStyle}}></span>
233                 {{/link-to}}
234             {{/each}}
235         </div>
236     </script>
237
238     <script type="text/x-handlebars" data-template-name="chart-details">
239     <div class="details-table-container">
240         <table class="details-table">
241             <tbody class="bugs">
242             {{#each details.bugTrackers}}
243                 {{#if bugs}}
244                     <tr>
245                         <th>{{label}}</th>
246                         <td>
247                             {{#each bugs}}
248                                 <a {{bind-attr href=bugUrl}} target="_blank">{{bugNumber}}</a>
249                             {{/each}}
250                         </td>
251                     </tr>
252                 {{/if}}
253             {{/each}}
254             </tbody>
255             <tr><th>Current</th><td>{{details.currentValue}} {{chartData.unit}}
256             {{#if details.oldValue}}
257                 (from {{details.oldValue}})
258             {{/if}}</td></tr>
259             {{#if details.buildNumber}}
260                 <tr>
261                     <th>Build</th>
262                     <td>
263                         {{#if details.buildURL}}
264                             <a {{bind-attr href=details.buildURL}} target="_blank">{{details.buildNumber}}</a>
265                         {{else}}
266                             {{details.buildNumber}}
267                         {{/if}}
268                         ({{details.buildTime}})
269                     </td>
270                 </tr>
271             {{/if}}
272             {{#each details.revisions}}
273                 <tr>
274                     <th>{{name}}</th>
275                     <td>
276                         {{#if url}}
277                             <a {{bind-attr href=url}} target="_blank">{{label}}</a>
278                         {{else}}
279                             {{label}}
280                         {{/if}}
281                     </td>
282                 </tr>
283                 <tr>
284                     <td colspan="2">{{commits-viewer repository=repository revisionInfo=this}}</td>
285                 </tr>
286             {{/each}}
287         </table>
288     </div>
289     </script>
290
291     <script type="text/x-handlebars" data-template-name="components/commits-viewer">
292     {{#if commits}}
293         <table>
294             <tbody>
295                 {{#each commits}}
296                     <tr>
297                         <td>
298                             {{#if url}}
299                                 <a {{bind-attr href=url}} target="_blank">{{author}}</a>
300                             {{else}}
301                                 {{author}}
302                             {{/if}}
303                         </td>
304                         <td>{{message}}</td>
305                     </tr>
306                 {{/each}}
307             </tbody>
308         </table>
309     {{/if}}
310     </script>
311
312     <script type="text/x-handlebars" data-template-name="close-button">
313         <svg class="close-button icon-button" viewBox="0 0 100 100">
314             <g stroke="black" stroke-width="10">
315                 <circle cx="50" cy="50" r="45" fill="transparent"/>
316                 <polygon points="30,30 70,70" />
317                 <polygon points="30,70 70,30" />
318             </g>
319         </svg>
320     </script>
321
322     <script type="text/x-handlebars" data-template-name="analysis-button">
323         <svg class="analysis-button icon-button" viewBox="0 0 100 100">
324             <g stroke="black" stroke-width="15">
325                 <circle cx="50" cy="50" r="40" fill="transparent"/>
326                 <line x1="50" y1="25" x2="50" y2="55"/>
327                 <circle cx="50" cy="67.5" r="2.5" fill="transparent"/>
328             </g>
329         </svg>
330     </script>
331
332     <script type="text/x-handlebars" data-template-name="search-button">
333         <svg class="search-button icon-button" viewBox="0 0 100 100">
334             <g stroke="black" stroke-width="15">
335                 <circle cx="60" cy="40" r="30" fill="transparent"/>
336                 <line x1="10" y1="90" x2="40" y2="60"/>
337             </g>
338         </svg>
339     </script>
340
341     <script type="text/x-handlebars" data-template-name="spinner">
342         <svg class="spinner" viewBox="0 0 100 100">
343             <line x1="10" y1="50" x2="30" y2="50" stroke="black" stroke-width="10" stroke-linecap="round"/>
344             <line x1="21.72" y1="21.72" x2="35.86" y2="35.86" stroke="black" stroke-width="10" stroke-linecap="round"/>
345             <line x1="50" y1="10" x2="50" y2="30" stroke="black" stroke-width="10" stroke-linecap="round"/>
346             <line x1="78.28" y1="21.72" x2="64.14" y2="35.86" stroke="black" stroke-width="10" stroke-linecap="round"/>
347             <line x1="70" y1="50" x2="90" y2="50" stroke="black" stroke-width="10" stroke-linecap="round"/>
348             <line x1="65.86" y1="65.86" x2="78.28" y2="78.28" stroke="black" stroke-width="10" stroke-linecap="round"/>
349             <line x1="50" y1="70" x2="50" y2="90" stroke="black" stroke-width="10" stroke-linecap="round"/>
350             <line x1="21.72" y1="78.28" x2="35.86" y2="65.86" stroke="black" stroke-width="10" stroke-linecap="round"/>
351         </svg>
352     </script>
353
354     <script type="text/x-handlebars" data-template-name="navbar">
355         <nav id="navigation" role="navigation">
356             <h1><a href="#">WebKit Perf Monitor</a></h1>
357             <ul>
358                 {{#link-to 'index' tagName='li'}}
359                     {{#link-to 'index'}}Dashboard{{/link-to}}
360                 {{/link-to}}
361                 {{#link-to 'charts' tagName='li'}}
362                     {{#link-to 'charts'}}Charts{{/link-to}}
363                 {{/link-to}}
364                 {{#link-to 'analysis' tagName='li'}}
365                     {{#link-to 'analysis'}}Analysis{{/link-to}}
366                 {{/link-to}}
367             </ul>
368         </nav>
369     </script>
370
371     <script type="text/x-handlebars" data-template-name="number-of-days-controls">
372         <li class="numberOfDaysIs1">
373             <a href="#" class="control-button" {{action "setNumberOfDays" 1}}>1D</a>
374         </li>
375         <li class="numberOfDaysIs7">
376             <a href="#" class="control-button" {{action "setNumberOfDays" 7}}>1W</a>
377         </li>
378         <li class="numberOfDaysIs30">
379             <a href="#" class="control-button" {{action "setNumberOfDays" 30}}>1M</a>
380         </li>
381         <li class="numberOfDaysIs90">
382             <a href="#" class="control-button" {{action "setNumberOfDays" 90}}>3M</a>
383         </li>
384         <li class="numberOfDaysIs183">
385             <a href="#" class="control-button" {{action "setNumberOfDays" 183}}>6M</a>
386         </li>
387         <li class="numberOfDaysIs365">
388             <a href="#" class="control-button" {{action "setNumberOfDays" 365}}>1Y</a>
389         </li>
390     </script>
391
392     <script type="text/x-handlebars" data-template-name="start-time-slider">
393         <label><input type="range"> <span class="numberOfDays">X</span> days</label>
394     </script>
395
396     <script type="text/x-handlebars" data-template-name="popup">
397         <span class="label">{{view App.PopupButtonView tagName="a" label=view.label }}</span>
398         {{view view.popupListContainerView viewName="popupListContainerViewInstance"}}
399     </script>
400
401     <script type="text/x-handlebars" data-template-name="popup-list">
402         {{#each view.list}}
403             {{#if isSeparator}}
404                 <li><hr></li>
405             {{else }} {{#if children}}
406                 <li>{{view App.PopupView list=children label=label}}</li>
407             {{else}}
408                 <li>
409                     {{#if actionName}}
410                         <a href="#" class="label" {{action actionName actionArgument}}>{{label}}</a>
411                     {{else}}
412                         <a class="label">{{label}}</a>
413                     {{/if}}
414                 </li>
415             {{/if}} {{/if}}
416         {{/each}}
417     </script>
418
419     <script type="text/x-handlebars" data-template-name="analysis">
420         <header id="header">
421             {{partial "navbar"}}
422         </header>
423
424         <table id="analysis-tasks">
425             <thead>
426                 <tr>
427                     <td>ID</td>
428                     <td>Name</td>
429                     <td>Created at</td>
430                 </tr>
431             </thead>
432             <tbody>
433                 {{#each model.tasks}}
434                     <tr>
435                         <td>{{#link-to 'analysisTask' id}}{{id}}{{/link-to}}</td>
436                         <td>{{name}}</td>
437                         <td>{{createdAt}}</td>
438                     </tr>
439                 {{/each}}
440             </tbody>
441         </table>
442     </script>
443
444     <script type="text/x-handlebars" data-template-name="analysisTask">
445         <header id="header">
446             {{partial "navbar"}}
447         </header>
448
449         <h2 id="analysis-task-title">{{label}}</h2>
450         {{#if platform.label}}
451             <h3 id="analysis-task-testname">{{metric.fullName}} - {{platform.label}}</h3>
452         {{/if}}
453
454         {{#if chartData}}
455             <section class="analysis-chart-pane chart-pane">
456                 <div class="svg-container">
457                     {{interactive-chart
458                         chartData=chartData
459                         enableSelection=false
460                         chartPointRadius=2
461                         domain=chartDomain
462                         markedPoints=markedPoints}}
463                 </div>
464                 <div class="details">
465                     <table class="analysis-bugs">
466                         <tbody>
467                             {{#each bugTrackers}}
468                                 <tr>
469                                     <th>{{label}}</th>
470                                     <td>
471                                         <form {{action "associateBug" this editedBugNumber on="submit"}}>
472                                             {{input type=text value=editedBugNumber}}
473                                         </form>
474                                     </td>
475                                 </tr>
476                             {{/each}}
477                         </tbody>
478                     </table>
479                     <table>
480                         <tbody>
481                             {{#each analysisPoints}}
482                                 <tr><td>{{label}}</td><td>{{value}}</td></tr>
483                             {{/each}}
484                         </tbody>
485                     </table>
486                 </div>
487             </section>
488
489             {{#each testGroups}}
490                 <section class="analysis-group">
491                     <table>
492                         <caption>{{name}}</caption>
493                         <thead>
494                             <tr>
495                                 <td>Configuration</td>
496                                 <td>Build</td>
497                                 <td>Build Time</td>
498                                 <td>{{../metric.fullName}}</td>
499                             </tr>
500                         </thead>
501                         <tbody>
502                             {{#each buildRequests}}
503                                 <tr>
504                                     <td>{{id}}</td>
505                                     <td>{{buildNumber}}</td>
506                                     <td>{{buildTime}}</td>
507                                     <td>{{mean}}</td>
508                                 </tr>
509                             {{/each}}
510                         </tbody>
511                     </table>
512                 </section>
513             {{/each}}
514
515             <form class="analysis-group">
516                 <table>
517                     <caption><input name="name" placeholder="Test group name" required></caption>
518                     <thead>
519                         <tr>
520                             <th>Root</th>
521                             {{#each testSets}}
522                                 <th>
523                                     {{name}}
524                                     {{view Ember.Select
525                                         content=options
526                                         optionValuePath="content.value"
527                                         optionLabelPath="content.label"
528                                         selection=selection}}
529                                 </th>
530                             {{/each}}
531                         </tr>
532                     </thead>
533                     <tbody>
534                         {{#each roots}}
535                             <tr>
536                                 <th>{{name}}</th>
537                                 {{#each sets}}
538                                     <td>{{view Ember.Select name=name content=revisions
539                                         optionValuePath="content.value" optionLabelPath="content.label"
540                                         selection=selection}}</td>
541                                 {{/each}}
542                             </tr>
543                         {{/each}}
544                     </tbody>
545                     <tbody>
546                         <tr>
547                             <th>Number of runs</th>
548                             <td colspan=2>
549                                 <select>
550                                     <option>1</option>
551                                     <option>2</option>
552                                     <option>3</option>
553                                     <option>4</option>
554                                     <option>5</option>
555                                     <option>6</option>
556                                 </select>
557                             </td>
558                         </tr>
559                     </tbody>
560                 </table>
561
562                 <button type="submit">Start A/B testing</button>
563             </form>
564         {{/if}}
565     </script>
566
567 </head>
568 <body>
569 </body>
570 </html>