5 <title>WebKit Performance Monitor (Beta)</title>
7 <link rel="prefetch" href="../data/manifest.json">
8 <script type="application/json" src="../data/manifest.json"></script>
10 <link rel="stylesheet" href="app.css">
11 <link rel="stylesheet" href="chart-pane.css">
13 <script src="js/jquery.min.js" defer></script>
14 <script src="js/jquery.min.js" defer></script>
15 <script src="js/handlebars.js" defer></script>
16 <script src="js/ember.js" defer></script>
17 <script src="js/ember-data.js" defer></script>
18 <script src="js/d3/d3.min.js" defer></script>
19 <script src="js/statistics.js" defer></script>
20 <script src="data.js" defer></script>
21 <script src="app.js" defer></script>
22 <script src="manifest.js" defer></script>
23 <script src="analysis.js" defer></script>
24 <script src="popup.js" defer></script>
25 <script src="interactive-chart.js" defer></script>
26 <script src="commits-viewer.js" defer></script>
28 <script type="text/x-handlebars" data-template-name="dashboard">
31 {{view App.NumberOfDaysControlView tagName="ul" numberOfDays=numberOfDays}}
34 <a href="javascript:false" class="control-button" {{action toggleEditMode}}>
35 {{#if controller.editMode}}
45 <table {{bind-attr class=":dashboard editMode:editMode:readonly"}}>
49 {{#each headerColumns}}
50 {{#if controller.editMode}}
52 <a href="javascript:false" title="Remove column" {{action "removeColumn" index}}>
53 {{partial "close-button"}}
61 {{#if controller.editMode}}
62 <td>{{input value=newColumnHeader action="addColumn" placeholder="Add a column"}}</td>
69 {{#if controller.editMode}}
71 <a href="javascript:false" title="Remove row" {{action "removeRow" this}}>
72 {{partial "close-button"}}
74 {{input value=header}}
77 <th><span class="label">{{header}}</span></th>
82 {{#if controller.editMode}}
83 {{view App.PopupView list=pickerData label='Choose'}}
87 <div class="dashboard-status">
89 {{latestStatus.currentValue}}{{chartData.unit}}
90 {{#if latestStatus.label}}
91 <span {{bind-attr class=":status-label latestStatus.className"}}>{{latestStatus.label}}</span>
95 {{#link-to 'charts' (query-params paneList=paneList since=controller.since)}}
98 domain=controller.sharedDomain
99 enableSelection=false}}
103 <div class="failure">{{failure}}</div>
105 <div class="progress">{{partial "spinner"}}</div>
108 {{#if controller.editMode}}
109 <a href="javascript:false" title="Reset pane" class="reset" {{action "resetPane" this}}>
110 {{partial "close-button"}}
116 {{#if controller.editMode}}
121 {{#if controller.editMode}}
123 <td>{{input value=newRowHeader action="addRow" placeholder="Add a row"}}</td>
134 <script type="text/x-handlebars" data-template-name="charts">
137 <ul class="controls">
138 <li>{{view App.PopupView list=platforms label='Add pane'}}</li>
140 <ul class="controls">
141 <li>{{view App.StartTimeSliderView startTime=startTime oldestStartTime=oldestStartTime}}</li>
145 {{#each panes itemController="pane"}}
146 <section class="chart-pane" tabindex="0">
148 <h1 {{action "toggleDetails"}}>{{metric.fullName}} - {{ platform.name}}</h1>
149 <a href="javascript:false" title="Close" class="close-button" {{action "close"}}>{{partial "close-button"}}</a>
150 {{#if movingAverageStrategies}}
151 <a href="javascript:false" title="Statistical Tools" class="stat-button" {{action "toggleStatPane"}}>{{partial "stat-button"}}</a>
153 <a href="javascript:false" {{bind-attr title=showOutlierTitle class=":outlier-button showOutlier:show:hide"}}
154 {{action "toggleShowOutlier"}}>
155 {{partial "outlier-button"}}
157 <a href="javascript:false" title="Analyze the selected range" class="analysis-button" {{action "toggleBugsPane"}}>
158 {{partial "analysis-button"}}
160 {{#if App.Manifest.repositoriesWithReportedCommits}}
161 <a href="javascript:false" title="Search commits by a keyword" class="search-button" {{action "toggleSearchPane"}}>{{partial "search-button"}}</a>
166 <div class="svg-container">
171 domain=mainPlotDomain
174 currentItem=hoveredOrSelectedItem
175 currentTime=sharedTime
176 selectedItem=selectedItem
177 highlightedItems=highlightedItems
178 rangeRoute="analysisTask"
180 selectedPoints=selectedPoints
181 showFullYAxis=showFullYAxis
186 <div class="failure">{{failure}}</div>
188 <div class="progress">{{partial "spinner"}}</div>
192 <div class="details">
193 <div class="overview">
198 domain=overviewDomain
199 selection=overviewSelection}}
202 <div class="details-table-container">
203 {{partial "chart-details"}}
208 <div {{bind-attr class=":popup-pane :analysis-pane showingAnalysisPane::hidden"}}>
209 <section class="analysis-option-option">
210 <h1>Start A/B testing or associate bugs</h1>
211 <label>Name: {{input type=text value=newAnalysisTaskName}} <button {{action "createAnalysisTask"}} {{bind-attr disabled=cannotAnalyze}}>Analyze</button></label>
213 <section class="analysis-option-option">
214 <h1>Marking outliers</h1>
215 <label>{{input type=checkbox checked=selectedItemIsMarkedOutlier disabled=cannotMarkOutlier}} Mark as an outlier and hide it.</label>
219 <form {{bind-attr class=":popup-pane :search-pane showingSearchPane::hidden"}}>
220 <span class="repositories">
222 content=App.Manifest.repositoriesWithReportedCommits
223 optionValuePath='content.id'
224 optionLabelPath='content.name'
225 selection=commitSearchRepository}}
227 {{input action="searchCommit" placeholder="Name or email" value=commitSearchKeyword}}
230 {{partial "stat-pane"}}
235 <script type="text/x-handlebars" data-template-name="components/interactive-chart">
237 <div class="selection-toolbar" style="display: none;">
238 <a href="javascript:false" class="button" {{action "zoom"}}>
239 <svg class="zoom" viewBox="0 0 100 100">
240 <g stroke-width="0" stroke="none">
241 <polygon points="25,25 5,50 25,75"/>
242 <polygon points="75,25 95,50 75,75"/>
244 <line x1="20" y1="50" x2="80" y2="50" stroke-width="10"></line>
249 <div class="rangeBarsContainerInlineStyle">
251 {{#link-to linkRoute linkId title=label}}
252 <span {{bind-attr class=":rangeBar status" style=inlineStyle}}></span>
258 <script type="text/x-handlebars" data-template-name="chart-details">
260 <table class="details-table">
262 {{#each details.bugTrackers}}
268 <a {{bind-attr href=bugUrl}} target="_blank">{{bugNumber}}</a>
274 <tbody class="status">
278 {{details.status.currentValue}} {{chartData.unit}}
279 {{#if details.status.valueDelta}}
280 ({{details.status.valueDelta}} {{chartData.unit}} / {{details.status.relativeDelta}})
282 {{#if details.status.label}}
284 <span {{bind-attr class=details.status.className}}>{{details.status.label}}</span>
290 {{#if details.buildNumber}}
294 {{#if details.buildURL}}
295 <a {{bind-attr href=details.buildURL}} target="_blank">{{details.buildNumber}}</a>
297 {{details.buildNumber}}
299 ({{details.buildTime}})
303 {{#each details.revisions}}
308 <a {{bind-attr href=url}} target="_blank">{{label}}</a>
317 <div class="commits">
318 {{#each details.revisions}}
319 {{commits-viewer repository=repository revisionInfo=this caption=name}}
325 <script type="text/x-handlebars" data-template-name="components/commits-viewer">
327 <table {{bind-attr class=":commits-viewer visible::hidden"}}>
329 <caption {{action toggleVisibility}}>{{caption}} commits</caption>
337 <a {{bind-attr href=url}} target="_blank">{{revision}}</a>
352 <script type="text/x-handlebars" data-template-name="close-button">
353 <svg class="close-button icon-button" viewBox="0 0 100 100">
354 <g stroke="black" stroke-width="10">
355 <circle cx="50" cy="50" r="45" fill="transparent"/>
356 <polygon points="30,30 70,70" />
357 <polygon points="30,70 70,30" />
362 <script type="text/x-handlebars" data-template-name="stat-button">
363 <svg class="stat-button icon-button" viewBox="10 0 110 100">
364 <g stroke="none" stroke-width="0" fill="black">
365 <path id="upper-sigma" d="M 5 5 H 95 V 40 h -10 c -5 -20 -5 -20 -25 -20 H 35 L 60 50 l -20 0" />
366 <use xlink:href="#upper-sigma" transform="translate(0, 100) scale(1, -1)" />
371 <script type="text/x-handlebars" data-template-name="stat-pane">
372 <section {{bind-attr class=":popup-pane :stat-pane showingStatPane::hidden"}}>
373 <section class="stat-option">
374 <h1>Moving average</h1>
375 <label>Type: {{view Ember.Select
376 content=movingAverageStrategies
377 optionValuePath='content'
378 optionLabelPath='content.label'
379 selection=chosenMovingAverageStrategy}}</label>
380 {{#if chosenMovingAverageStrategy.description}}
381 <p class="description">{{chosenMovingAverageStrategy.description}}</p>
383 {{#each chosenMovingAverageStrategy.parameterList}}
384 <label>{{label}}: {{input type="number" value=value min=min max=max step=step}}</label>
387 {{#if chosenMovingAverageStrategy.execute}}
388 <section class="stat-option">
390 <label>Type: {{view Ember.Select
391 content=envelopingStrategies
392 optionValuePath='content'
393 optionLabelPath='content.label'
394 selection=chosenEnvelopingStrategy}}</label>
395 {{#if chosenEnvelopingStrategy.description}}
396 <p class="description">{{chosenEnvelopingStrategy.description}}</p>
398 {{#each chosenEnvelopingStrategy.parameterList}}
399 <label>{{label}}: <input type="number" {{bind-attr value=value min=min max=max step=step}}></label>
403 {{#if chosenMovingAverageStrategy.isSegmentation}}
404 <section class="stat-option">
405 <h1>A/B Test Range Selection</h1>
406 <label>Type: {{view Ember.Select
407 content=testRangeSelectionStrategies
408 optionValuePath='content'
409 optionLabelPath='content.label'
410 selection=chosenTestRangeSelectionStrategy}}</label>
411 {{#if chosenTestRangeSelectionStrategy.description}}
412 <p class="description">{{chosenTestRangeSelectionStrategy.description}}</p>
416 {{#if chosenEnvelopingStrategy.execute}}
417 <section class="stat-option">
418 <h1>Anomaly Detection</h1>
419 {{#each anomalyDetectionStrategies}}
420 <label {{bind-attr title=description}}>{{input type="checkbox" name=id checked=enabled}}{{label}}</label>
427 <script type="text/x-handlebars" data-template-name="outlier-button">
428 <svg class="outlier-button icon-button" viewBox="0 0 100 100">
429 <g stroke="black" fill="black" stroke-width="15">
430 <line x1="0" y1="70" x2="40" y2="70"/>
431 <circle cx="15" cy="70" r="8"/>
432 <circle cx="45" cy="70" r="8"/>
433 <circle cx="85" cy="70" r="8"/>
434 <line x1="85" y1="70" x2="100" y2="70"/>
435 <g class="show-outlier-icon">
436 <line x1="45" y1="70" x2="65" y2="20"/>
437 <line x1="65" y1="20" x2="85" y2="70"/>
438 <circle cx="65" cy="20" r="8"/>
440 <g class="hide-outlier-icon">
441 <line x1="45" y1="70" x2="85" y2="70"/>
447 <script type="text/x-handlebars" data-template-name="analysis-button">
448 <svg class="analysis-button icon-button" viewBox="0 0 100 100">
449 <g stroke="black" fill="black" stroke-width="15">
450 <circle cx="50" cy="50" r="40" fill="transparent"/>
451 <line x1="50" y1="25" x2="50" y2="55"/>
452 <circle cx="50" cy="67.5" r="10" stroke="none"/>
457 <script type="text/x-handlebars" data-template-name="search-button">
458 <svg class="search-button icon-button" viewBox="0 0 100 100">
459 <g stroke="black" stroke-width="15">
460 <circle cx="60" cy="40" r="30" fill="transparent"/>
461 <line x1="10" y1="90" x2="40" y2="60"/>
466 <script type="text/x-handlebars" data-template-name="spinner">
467 <svg class="spinner" viewBox="0 0 100 100">
468 <line x1="10" y1="50" x2="30" y2="50" stroke="black" stroke-width="10" stroke-linecap="round"/>
469 <line x1="21.72" y1="21.72" x2="35.86" y2="35.86" stroke="black" stroke-width="10" stroke-linecap="round"/>
470 <line x1="50" y1="10" x2="50" y2="30" stroke="black" stroke-width="10" stroke-linecap="round"/>
471 <line x1="78.28" y1="21.72" x2="64.14" y2="35.86" stroke="black" stroke-width="10" stroke-linecap="round"/>
472 <line x1="70" y1="50" x2="90" y2="50" stroke="black" stroke-width="10" stroke-linecap="round"/>
473 <line x1="65.86" y1="65.86" x2="78.28" y2="78.28" stroke="black" stroke-width="10" stroke-linecap="round"/>
474 <line x1="50" y1="70" x2="50" y2="90" stroke="black" stroke-width="10" stroke-linecap="round"/>
475 <line x1="21.72" y1="78.28" x2="35.86" y2="65.86" stroke="black" stroke-width="10" stroke-linecap="round"/>
479 <script type="text/x-handlebars" data-template-name="navbar">
480 <nav id="navigation" role="navigation">
481 <h1><a href="#">WebKit Perf Monitor</a></h1>
483 {{#each App.Manifest.dashboards}}
485 {{#link-to 'dashboard' name tagName='li'}}
486 {{#link-to 'dashboard' name}}{{label}}{{/link-to}}
490 {{#link-to 'charts' tagName='li'}}
491 {{#link-to 'charts'}}Charts{{/link-to}}
493 {{#link-to 'analysis' tagName='li'}}
494 {{#link-to 'analysis'}}Analysis{{/link-to}}
500 <script type="text/x-handlebars" data-template-name="number-of-days-controls">
501 <li class="numberOfDaysIs1">
502 <a href="javascript:false" class="control-button" {{action "setNumberOfDays" 1}}>1D</a>
504 <li class="numberOfDaysIs7">
505 <a href="javascript:false" class="control-button" {{action "setNumberOfDays" 7}}>1W</a>
507 <li class="numberOfDaysIs30">
508 <a href="javascript:false" class="control-button" {{action "setNumberOfDays" 30}}>1M</a>
510 <li class="numberOfDaysIs90">
511 <a href="javascript:false" class="control-button" {{action "setNumberOfDays" 90}}>3M</a>
513 <li class="numberOfDaysIs183">
514 <a href="javascript:false" class="control-button" {{action "setNumberOfDays" 183}}>6M</a>
516 <li class="numberOfDaysIs365">
517 <a href="javascript:false" class="control-button" {{action "setNumberOfDays" 365}}>1Y</a>
521 <script type="text/x-handlebars" data-template-name="start-time-slider">
522 <label><input type="range"> <span class="numberOfDays">X</span> days</label>
525 <script type="text/x-handlebars" data-template-name="popup">
526 <span class="label">{{view App.PopupButtonView tagName="a" label=view.label }}</span>
527 {{view view.popupListContainerView viewName="popupListContainerViewInstance"}}
530 <script type="text/x-handlebars" data-template-name="popup-list">
534 {{else }} {{#if children}}
535 <li>{{view App.PopupView list=children label=label}}</li>
539 <a href="javascript:false" class="label" {{action actionName actionArgument}}>{{label}}</a>
541 <a class="label">{{label}}</a>
548 <script type="text/x-handlebars" data-template-name="analysis">
553 <table id="analysis-tasks">
565 {{#each model.tasks}}
567 <td class="task-name">{{#link-to 'analysisTask' id}}{{name}}{{/link-to}}</td>
568 <td class="status">{{statusLabel}}</td>
569 <td class="author">{{author}}</td>
570 <td class="created-at">{{formattedCreatedAt}}</td>
571 <td class="platform-name">{{platform.label}}</td>
572 <td class="test-name">{{metric.fullName}}</td>
579 <script type="text/x-handlebars" data-template-name="analysisTask">
584 <h2 id="analysis-task-title">{{label}}</h2>
585 {{#if platform.label}}
586 <h3 id="analysis-task-testname">{{metric.fullName}} - {{platform.label}}</h3>
590 <section class="analysis-chart-pane chart-pane" tabindex="0">
591 <div class="svg-container">
593 chartData=pane.chartData
595 domain=overviewDomain
598 currentItem=pane.hoveredOrSelectedItem
599 selectedPoints=pane.selectedPoints
601 highlightedItems=highlightedItems
602 rangeRoute="analysisTask"}}
604 <div class="details">
605 <div class="details-table-container">
607 {{partial "chart-details"}}
609 {{partial "analysisStatusForm"}}
616 {{partial "testGroupForm"}}
618 {{#each testGroupPanes}}
619 {{partial "testGroup"}}
623 <script type="text/x-handlebars" data-template-name="testGroup">
624 <section class="analysis-group">
626 <div class="table-container">
627 <table class="results">
630 <td colspan="2">Configuration</td>
633 {{#each repositories}}
638 {{#each configurations}}
639 <tbody {{bind-attr class="showRequestList::hideRequests"}}>
640 <tr class="summary" {{action toggleShowRequestList this}}>
641 <td class="config-letter" colspan="2">{{summary.configLetter}}</td>
643 {{partial "testGroupRow"}}
649 <td class="config-letter" {{action toggleShowRequestList this}}></td>
651 <td>Run {{orderLabel}}</td>
652 {{partial "testGroupRow"}}
657 {{#each comparisons}}
660 <td colspan="2">{{label}}</td>
661 <td>{{difference}}</td>
664 {{#each repositories}}
673 <div class="reference-chart">
674 {{#if referenceChart}}
676 chartData=referenceChart.data
677 domain=overviewDomain
680 enableSelection=false
681 highlightedItems=referenceChart.highlightedItems}}
687 <script type="text/x-handlebars" data-template-name="testGroupRow">
690 {{box-plot range=valueRange value=value delta=delta}}
695 <a {{bind-attr href=url title=buildLabel}}>{{statusLabel}}</a>
697 {{#each revisionList}}
702 <script type="text/x-handlebars" data-template-name="testGroupForm">
703 {{#if rootConfigurations}}
704 <form method="POST" {{action "createTestGroup" newTestGroupName repetitionCount on="submit"}}>
705 <section class="analysis-group">
706 <h1>{{input name="name" value=newTestGroupName placeholder="Test group name" required=true type="text"}}</h1>
710 <th>Configuration</th>
711 {{#each configurations}}
717 {{#each rootConfigurations}}
721 <td>{{view Ember.Select name=name content=options
722 optionValuePath="content.value" optionLabelPath="content.label"
723 selection=selection}}</td>
729 <label>Number of runs {{view Ember.Select content=possibleRepetitionCounts value=repetitionCount}}</label>
730 <button type="submit">Start A/B testing</button>
736 <script type="text/x-handlebars" data-template-name="analysisStatusForm">
737 <table class="analysis-bugs">
741 <th>{{bugTracker.name}}</th>
743 <a {{bind-attr href=url}} target="_blank">{{number}}</a>
744 <a href="javascript:false" {{action "deleteBug" this}}>{{partial "close-button"}}</a>
751 {{view Ember.Select content=bugTrackers optionValuePath="content" optionLabelPath="content.name" value=chosenBugTracker}}
754 {{input id=elementId type=text value=editedBugNumber}}
755 <button {{action "addBug" chosenBugTracker editedBugNumber}}>Add</button>
762 <th><label for="analysis-status">Status<label></th>
764 <form class="analysis-bugs" {{action "saveStatus" on="submit"}}>
765 {{view Ember.Select id="analysis-status" content=analysisResultOptions optionValuePath="content"
766 optionLabelPath="content.label" selection=chosenAnalysisResult}}
767 <input type="submit" value="Save"><br>
768 <label {{bind-attr class="needsFeedback::hidden"}}>{{input type=checkbox checked=notNeeded}} This should not have been created</label>