New perf dashboard should compare results to baseline and target
[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 since=controller.since)}}
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
192                             content=App.Manifest.repositoriesWithReportedCommits
193                             optionValuePath='content.id'
194                             optionLabelPath='content.name'
195                             selection=commitSearchRepository}}
196                     </span>
197                     {{input action="searchCommit" placeholder="Name or email" value=commitSearchKeyword}}
198                 </form>
199
200                 <div {{bind-attr class=":analysis-pane showingAnalysisPane::hidden"}}>
201                     <table>
202                         <tbody>
203                             <tr>
204                                 <th>
205                                     <label>Name: {{input type=text value=newAnalysisTaskName}}</label>
206                                     <button {{action "createAnalysisTask"}} {{bind-attr disabled=cannotAnalyze}}>Analyze</button>
207                                 </th>
208                             </tr>
209                         </tbody>
210                     </table>
211                 </div>
212
213             </section>
214         {{/each}}
215     </script>
216
217     <script type="text/x-handlebars" data-template-name="components/interactive-chart">
218         {{#if interactive}}
219             <div class="selection-toolbar" style="display: none;">
220                 <a href="#" class="button" {{action "zoom"}}>
221                     <svg class="zoom" viewBox="0 0 100 100">
222                         <g stroke-width="0" stroke="none">
223                             <polygon points="25,25 5,50 25,75"/>
224                             <polygon points="75,25 95,50 75,75"/>
225                         </g>
226                         <line x1="20" y1="50" x2="80" y2="50" stroke-width="10"></line>
227                     </svg>
228                 </a>
229             </div>
230         {{/if}}
231         <div class="rangeBarsContainerInlineStyle">
232             {{#each rangeBars}}
233                 {{#link-to linkRoute linkId title=label}}
234                     <span class="rangeBar" {{bind-attr style=inlineStyle}}></span>
235                 {{/link-to}}
236             {{/each}}
237         </div>
238     </script>
239
240     <script type="text/x-handlebars" data-template-name="chart-details">
241     <div class="details-table-container">
242         <table class="details-table">
243             <tbody class="bugs">
244             {{#each details.bugTrackers}}
245                 {{#if bugs}}
246                     <tr>
247                         <th>{{label}}</th>
248                         <td>
249                             {{#each bugs}}
250                                 <a {{bind-attr href=bugUrl}} target="_blank">{{bugNumber}}</a>
251                             {{/each}}
252                         </td>
253                     </tr>
254                 {{/if}}
255             {{/each}}
256             </tbody>
257             <tbody class="status">
258                 <tr>
259                     <th>Current</th>
260                     <td>
261                         {{details.currentValue}} {{chartData.unit}}
262                         {{#if details.oldValue}}
263                             (from {{details.oldValue}} {{chartData.unit}})
264                         {{/if}}
265                         {{#if details.status.label}}
266                             <br>
267                             <span {{bind-attr class=details.status.className}}>{{details.status.label}}</span>
268                         {{/if}}
269                     </td>
270                 </tr>
271             </tbody>
272             {{#if details.buildNumber}}
273                 <tr>
274                     <th>Build</th>
275                     <td>
276                         {{#if details.buildURL}}
277                             <a {{bind-attr href=details.buildURL}} target="_blank">{{details.buildNumber}}</a>
278                         {{else}}
279                             {{details.buildNumber}}
280                         {{/if}}
281                         ({{details.buildTime}})
282                     </td>
283                 </tr>
284             {{/if}}
285             {{#each details.revisions}}
286                 <tr>
287                     <th>{{name}}</th>
288                     <td>
289                         {{#if url}}
290                             <a {{bind-attr href=url}} target="_blank">{{label}}</a>
291                         {{else}}
292                             {{label}}
293                         {{/if}}
294                     </td>
295                 </tr>
296                 <tr>
297                     <td colspan="2">{{commits-viewer repository=repository revisionInfo=this}}</td>
298                 </tr>
299             {{/each}}
300         </table>
301     </div>
302     </script>
303
304     <script type="text/x-handlebars" data-template-name="components/commits-viewer">
305     {{#if commits}}
306         <table>
307             <tbody>
308                 {{#each commits}}
309                     <tr>
310                         <td>
311                             {{#if url}}
312                                 <a {{bind-attr href=url}} target="_blank">{{author}}</a>
313                             {{else}}
314                                 {{author}}
315                             {{/if}}
316                         </td>
317                         <td>{{message}}</td>
318                     </tr>
319                 {{/each}}
320             </tbody>
321         </table>
322     {{/if}}
323     </script>
324
325     <script type="text/x-handlebars" data-template-name="close-button">
326         <svg class="close-button icon-button" viewBox="0 0 100 100">
327             <g stroke="black" stroke-width="10">
328                 <circle cx="50" cy="50" r="45" fill="transparent"/>
329                 <polygon points="30,30 70,70" />
330                 <polygon points="30,70 70,30" />
331             </g>
332         </svg>
333     </script>
334
335     <script type="text/x-handlebars" data-template-name="analysis-button">
336         <svg class="analysis-button icon-button" viewBox="0 0 100 100">
337             <g stroke="black" stroke-width="15">
338                 <circle cx="50" cy="50" r="40" fill="transparent"/>
339                 <line x1="50" y1="25" x2="50" y2="55"/>
340                 <circle cx="50" cy="67.5" r="2.5" fill="transparent"/>
341             </g>
342         </svg>
343     </script>
344
345     <script type="text/x-handlebars" data-template-name="search-button">
346         <svg class="search-button icon-button" viewBox="0 0 100 100">
347             <g stroke="black" stroke-width="15">
348                 <circle cx="60" cy="40" r="30" fill="transparent"/>
349                 <line x1="10" y1="90" x2="40" y2="60"/>
350             </g>
351         </svg>
352     </script>
353
354     <script type="text/x-handlebars" data-template-name="spinner">
355         <svg class="spinner" viewBox="0 0 100 100">
356             <line x1="10" y1="50" x2="30" y2="50" stroke="black" stroke-width="10" stroke-linecap="round"/>
357             <line x1="21.72" y1="21.72" x2="35.86" y2="35.86" stroke="black" stroke-width="10" stroke-linecap="round"/>
358             <line x1="50" y1="10" x2="50" y2="30" stroke="black" stroke-width="10" stroke-linecap="round"/>
359             <line x1="78.28" y1="21.72" x2="64.14" y2="35.86" stroke="black" stroke-width="10" stroke-linecap="round"/>
360             <line x1="70" y1="50" x2="90" y2="50" stroke="black" stroke-width="10" stroke-linecap="round"/>
361             <line x1="65.86" y1="65.86" x2="78.28" y2="78.28" stroke="black" stroke-width="10" stroke-linecap="round"/>
362             <line x1="50" y1="70" x2="50" y2="90" stroke="black" stroke-width="10" stroke-linecap="round"/>
363             <line x1="21.72" y1="78.28" x2="35.86" y2="65.86" stroke="black" stroke-width="10" stroke-linecap="round"/>
364         </svg>
365     </script>
366
367     <script type="text/x-handlebars" data-template-name="navbar">
368         <nav id="navigation" role="navigation">
369             <h1><a href="#">WebKit Perf Monitor</a></h1>
370             <ul>
371                 {{#link-to 'index' tagName='li'}}
372                     {{#link-to 'index'}}Dashboard{{/link-to}}
373                 {{/link-to}}
374                 {{#link-to 'charts' tagName='li'}}
375                     {{#link-to 'charts'}}Charts{{/link-to}}
376                 {{/link-to}}
377                 {{#link-to 'analysis' tagName='li'}}
378                     {{#link-to 'analysis'}}Analysis{{/link-to}}
379                 {{/link-to}}
380             </ul>
381         </nav>
382     </script>
383
384     <script type="text/x-handlebars" data-template-name="number-of-days-controls">
385         <li class="numberOfDaysIs1">
386             <a href="#" class="control-button" {{action "setNumberOfDays" 1}}>1D</a>
387         </li>
388         <li class="numberOfDaysIs7">
389             <a href="#" class="control-button" {{action "setNumberOfDays" 7}}>1W</a>
390         </li>
391         <li class="numberOfDaysIs30">
392             <a href="#" class="control-button" {{action "setNumberOfDays" 30}}>1M</a>
393         </li>
394         <li class="numberOfDaysIs90">
395             <a href="#" class="control-button" {{action "setNumberOfDays" 90}}>3M</a>
396         </li>
397         <li class="numberOfDaysIs183">
398             <a href="#" class="control-button" {{action "setNumberOfDays" 183}}>6M</a>
399         </li>
400         <li class="numberOfDaysIs365">
401             <a href="#" class="control-button" {{action "setNumberOfDays" 365}}>1Y</a>
402         </li>
403     </script>
404
405     <script type="text/x-handlebars" data-template-name="start-time-slider">
406         <label><input type="range"> <span class="numberOfDays">X</span> days</label>
407     </script>
408
409     <script type="text/x-handlebars" data-template-name="popup">
410         <span class="label">{{view App.PopupButtonView tagName="a" label=view.label }}</span>
411         {{view view.popupListContainerView viewName="popupListContainerViewInstance"}}
412     </script>
413
414     <script type="text/x-handlebars" data-template-name="popup-list">
415         {{#each view.list}}
416             {{#if isSeparator}}
417                 <li><hr></li>
418             {{else }} {{#if children}}
419                 <li>{{view App.PopupView list=children label=label}}</li>
420             {{else}}
421                 <li>
422                     {{#if actionName}}
423                         <a href="#" class="label" {{action actionName actionArgument}}>{{label}}</a>
424                     {{else}}
425                         <a class="label">{{label}}</a>
426                     {{/if}}
427                 </li>
428             {{/if}} {{/if}}
429         {{/each}}
430     </script>
431
432     <script type="text/x-handlebars" data-template-name="analysis">
433         <header id="header">
434             {{partial "navbar"}}
435         </header>
436
437         <table id="analysis-tasks">
438             <thead>
439                 <tr>
440                     <td>ID</td>
441                     <td>Name</td>
442                     <td>Created at</td>
443                 </tr>
444             </thead>
445             <tbody>
446                 {{#each model.tasks}}
447                     <tr>
448                         <td>{{#link-to 'analysisTask' id}}{{id}}{{/link-to}}</td>
449                         <td>{{name}}</td>
450                         <td>{{createdAt}}</td>
451                     </tr>
452                 {{/each}}
453             </tbody>
454         </table>
455     </script>
456
457     <script type="text/x-handlebars" data-template-name="analysisTask">
458         <header id="header">
459             {{partial "navbar"}}
460         </header>
461
462         <h2 id="analysis-task-title">{{label}}</h2>
463         {{#if platform.label}}
464             <h3 id="analysis-task-testname">{{metric.fullName}} - {{platform.label}}</h3>
465         {{/if}}
466
467         {{#if chartData}}
468             <section class="analysis-chart-pane chart-pane">
469                 <div class="svg-container">
470                     {{interactive-chart
471                         chartData=chartData
472                         enableSelection=false
473                         chartPointRadius=2
474                         domain=chartDomain
475                         highlightedItems=highlightedItems}}
476                 </div>
477                 <div class="details">
478                     <table class="analysis-bugs">
479                         <tbody>
480                             {{#each bugTrackers}}
481                                 <tr>
482                                     <th>{{label}}</th>
483                                     <td>
484                                         <form {{action "associateBug" this editedBugNumber on="submit"}}>
485                                             {{input type=text value=editedBugNumber}}
486                                         </form>
487                                     </td>
488                                 </tr>
489                             {{/each}}
490                         </tbody>
491                     </table>
492                     <table>
493                         <tbody>
494                             {{#each analysisPoints}}
495                                 <tr><td>{{label}}</td><td>{{value}}</td></tr>
496                             {{/each}}
497                         </tbody>
498                     </table>
499                 </div>
500             </section>
501             {{#each testGroups}}
502                 <section class="analysis-group">
503                     <table>
504                         <caption>{{name}}</caption>
505                         <thead>
506                             <tr>
507                                 <td>Order</td>
508                                 <td>Configuration</td>
509                                 <td>Status</td>
510                                 <td>Build</td>
511                                 <td>{{../metric.fullName}}</td>
512                             </tr>
513                         </thead>
514                         <tbody>
515                             {{#each buildRequests}}
516                                 <tr>
517                                     <td>{{orderLabel}}</td>
518                                     <td>{{config}}</td>
519                                     <td>{{#if url}}{{#link-to url}}{{statusLabel}}{{/link-to}}{{else}}{{statusLabel}}{{/if}}</td>
520                                     <td>{{build}}</td>
521                                     <td>{{mean}}</td>
522                                 </tr>
523                             {{/each}}
524                         </tbody>
525                     </table>
526                 </section>
527             {{/each}}
528
529             {{#if roots}}
530             <form method="POST" {{action "createTestGroup" newTestGroupName repetitionCount on="submit"}} class="analysis-group">
531                 <table>
532                     <caption>{{input name="name" value=newTestGroupName placeholder="Test group name" required=true type="text"}}</caption>
533                     <thead>
534                         <tr>
535                             <th>Root</th>
536                             {{#each testSets}}
537                                 <th>
538                                     {{name}}
539                                     {{view Ember.Select
540                                         content=options
541                                         optionValuePath="content.value"
542                                         optionLabelPath="content.label"
543                                         selection=selection}}
544                                 </th>
545                             {{/each}}
546                         </tr>
547                     </thead>
548                     <tbody>
549                         {{#each roots}}
550                             <tr>
551                                 <th>{{name}}</th>
552                                 {{#each sets}}
553                                     <td>{{view Ember.Select name=name content=revisions disabled=true
554                                         optionValuePath="content.value" optionLabelPath="content.label"
555                                         selection=selection}}</td>
556                                 {{/each}}
557                             </tr>
558                         {{/each}}
559                     </tbody>
560                     <tbody>
561                         <tr>
562                             <th>Number of runs</th>
563                             <td colspan=2>
564                                 {{view Ember.Select content=possibleRepetitionCounts value=repetitionCount}}
565                             </td>
566                         </tr>
567                     </tbody>
568                 </table>
569
570                 <button type="submit">Start A/B testing</button>
571             </form>
572             {{/if}}
573         {{/if}}
574     </script>
575
576 </head>
577 <body>
578 </body>
579 </html>