OLD | NEW |
1 <!-- | 1 <!-- |
2 The <chromium-perf-runs-sk> custom element declaration. Displays a table with
details about each | 2 The <chromium-perf-runs-sk> custom element declaration. Displays a table with
details about each |
3 completed and pending Chromium Perf task. | 3 completed and pending Chromium Perf task. |
4 | 4 |
5 Attributes: | 5 Attributes: |
6 defaultSize: The number of tasks to show per page, default 10. | 6 defaultSize: The number of tasks to show per page, default 10. |
7 constrainByUser: Whether to show only tasks created by the logged-in user in
itially, default | 7 constrainByUser: Whether to show only tasks created by the logged-in user in
itially, default |
8 false. | 8 false. |
9 myRunsConstrainText: Button text to constrain by user, default "View only my
runs". | 9 myRunsConstrainText: Button text to constrain by user, default "View only my
runs". |
10 everyonesRunsConstrainText: Button text to disable constraining by user, def
ault "View | 10 everyonesRunsConstrainText: Button text to disable constraining by user, def
ault "View |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 <paper-dialog-scrollable> | 116 <paper-dialog-scrollable> |
117 <pre>{{chromiumPerfTask.BlinkPatch}}</pre> | 117 <pre>{{chromiumPerfTask.BlinkPatch}}</pre> |
118 </paper-dialog-scrollable> | 118 </paper-dialog-scrollable> |
119 </paper-dialog> | 119 </paper-dialog> |
120 | 120 |
121 <paper-dialog heading="Skia Patch" id="{{ getSkiaPatchId(index) }}"> | 121 <paper-dialog heading="Skia Patch" id="{{ getSkiaPatchId(index) }}"> |
122 <paper-dialog-scrollable> | 122 <paper-dialog-scrollable> |
123 <pre>{{chromiumPerfTask.SkiaPatch}}</pre> | 123 <pre>{{chromiumPerfTask.SkiaPatch}}</pre> |
124 </paper-dialog-scrollable> | 124 </paper-dialog-scrollable> |
125 </paper-dialog> | 125 </paper-dialog> |
| 126 |
| 127 <paper-dialog heading="Telemetry Patch" id="{{ getBenchmarkPatchId(index)
}}"> |
| 128 <paper-dialog-scrollable> |
| 129 <pre>{{chromiumPerfTask.BenchmarkPatch}}</pre> |
| 130 </paper-dialog-scrollable> |
| 131 </paper-dialog> |
| 132 |
126 </template> | 133 </template> |
127 | 134 |
128 <table class="runshistory" id="runshistory" cellpadding="5" border="1"> | 135 <table class="runshistory" id="runshistory" cellpadding="5" border="1"> |
129 <tr class="headers"> | 136 <tr class="headers"> |
130 <td>Id</td> | 137 <td>Id</td> |
131 <td>User</td> | 138 <td>User</td> |
132 <td>Timestamps</td> | 139 <td>Timestamps</td> |
133 <td>Task Config</td> | 140 <td>Task Config</td> |
134 <td>Description</td> | 141 <td>Description</td> |
135 <td>Results</td> | 142 <td>Results</td> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 <a href="javascript:void(0);" data-index$="{{index}}" data-type="c
hromiumPatch">Chromium</a> | 255 <a href="javascript:void(0);" data-index$="{{index}}" data-type="c
hromiumPatch">Chromium</a> |
249 <br/> | 256 <br/> |
250 </template> | 257 </template> |
251 <template is="dom-if" if="{{chromiumPerfTask.BlinkPatch}}"> | 258 <template is="dom-if" if="{{chromiumPerfTask.BlinkPatch}}"> |
252 <a href="javascript:void(0);" data-index$="{{index}}" data-type="b
linkPatch">Blink</a> | 259 <a href="javascript:void(0);" data-index$="{{index}}" data-type="b
linkPatch">Blink</a> |
253 <br/> | 260 <br/> |
254 </template> | 261 </template> |
255 <template is="dom-if" if="{{chromiumPerfTask.SkiaPatch}}"> | 262 <template is="dom-if" if="{{chromiumPerfTask.SkiaPatch}}"> |
256 <a href="javascript:void(0);" data-index$="{{index}}" data-type="s
kiaPatch">Skia</a> | 263 <a href="javascript:void(0);" data-index$="{{index}}" data-type="s
kiaPatch">Skia</a> |
257 </template> | 264 </template> |
| 265 <template is="dom-if" if="{{chromiumPerfTask.BenchmarkPatch}}"> |
| 266 <a href="javascript:void(0);" data-index$="{{index}}" data-type="b
enchmarkPatch">Telemetry</a> |
| 267 </template> |
258 </td> | 268 </td> |
259 | 269 |
260 <!-- Task Repeats --> | 270 <!-- Task Repeats --> |
261 <td>{{ formatRepeatAfterDays(chromiumPerfTask.RepeatAfterDays) }}</td> | 271 <td>{{ formatRepeatAfterDays(chromiumPerfTask.RepeatAfterDays) }}</td> |
262 | 272 |
263 </tr> | 273 </tr> |
264 </template> | 274 </template> |
265 </table> | 275 </table> |
266 | 276 |
267 </template> | 277 </template> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 } else if (anchor.dataset.type == "nopatchBrowserArgs") { | 346 } else if (anchor.dataset.type == "nopatchBrowserArgs") { |
337 that.toggleDialog(that.getBrowserArgsNoPatchId(id)); | 347 that.toggleDialog(that.getBrowserArgsNoPatchId(id)); |
338 } else if (anchor.dataset.type == "withpatchBrowserArgs") { | 348 } else if (anchor.dataset.type == "withpatchBrowserArgs") { |
339 that.toggleDialog(that.getBrowserArgsWithPatchId(id)); | 349 that.toggleDialog(that.getBrowserArgsWithPatchId(id)); |
340 } else if (anchor.dataset.type == "chromiumPatch") { | 350 } else if (anchor.dataset.type == "chromiumPatch") { |
341 that.toggleDialog(that.getChromiumPatchId(id)); | 351 that.toggleDialog(that.getChromiumPatchId(id)); |
342 } else if (anchor.dataset.type == "blinkPatch") { | 352 } else if (anchor.dataset.type == "blinkPatch") { |
343 that.toggleDialog(that.getBlinkPatchId(id)); | 353 that.toggleDialog(that.getBlinkPatchId(id)); |
344 } else if (anchor.dataset.type == "skiaPatch") { | 354 } else if (anchor.dataset.type == "skiaPatch") { |
345 that.toggleDialog(that.getSkiaPatchId(id)); | 355 that.toggleDialog(that.getSkiaPatchId(id)); |
| 356 } else if (anchor.dataset.type == "benchmarkPatch") { |
| 357 that.toggleDialog(that.getBenchmarkPatchId(id)); |
346 } | 358 } |
347 } | 359 } |
348 var button = sk.findParent(e.target, "PAPER-ICON-BUTTON"); | 360 var button = sk.findParent(e.target, "PAPER-ICON-BUTTON"); |
349 if (button != null) { | 361 if (button != null) { |
350 if (button.dataset.type == "delete") { | 362 if (button.dataset.type == "delete") { |
351 that.deleteIndex = button.dataset.index; | 363 that.deleteIndex = button.dataset.index; |
352 that.$.delete_dialog.open(); | 364 that.$.delete_dialog.open(); |
353 } else if (button.dataset.type == "redo") { | 365 } else if (button.dataset.type == "redo") { |
354 that.redoIndex = button.dataset.index; | 366 that.redoIndex = button.dataset.index; |
355 that.$.redo_dialog.open(); | 367 that.$.redo_dialog.open(); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 }, | 429 }, |
418 | 430 |
419 getBlinkPatchId: function(index) { | 431 getBlinkPatchId: function(index) { |
420 return "blink_patch" + index; | 432 return "blink_patch" + index; |
421 }, | 433 }, |
422 | 434 |
423 getSkiaPatchId: function(index) { | 435 getSkiaPatchId: function(index) { |
424 return "skia_patch" + index; | 436 return "skia_patch" + index; |
425 }, | 437 }, |
426 | 438 |
| 439 getBenchmarkPatchId: function(index) { |
| 440 return "benchmark_patch" + index; |
| 441 }, |
| 442 |
427 resetPagination: function() { | 443 resetPagination: function() { |
428 this.pagination.offset = 0; | 444 this.pagination.offset = 0; |
429 this.pagination.size = this.defaultSize; | 445 this.pagination.size = this.defaultSize; |
430 }, | 446 }, |
431 | 447 |
432 constrainRunsByUser: function() { | 448 constrainRunsByUser: function() { |
433 this.constrainByUser = !this.constrainByUser; | 449 this.constrainByUser = !this.constrainByUser; |
434 this.resetPagination(); | 450 this.resetPagination(); |
435 this.reload(); | 451 this.reload(); |
436 }, | 452 }, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 }.bind(this)).catch(sk.errorMessage).then(function() { | 490 }.bind(this)).catch(sk.errorMessage).then(function() { |
475 this.reload(); | 491 this.reload(); |
476 this.$.redo_dialog.close(); | 492 this.$.redo_dialog.close(); |
477 }.bind(this)); | 493 }.bind(this)); |
478 }, | 494 }, |
479 | 495 |
480 formatTimestamp: ctfe.getFormattedTimestamp, | 496 formatTimestamp: ctfe.getFormattedTimestamp, |
481 formatRepeatAfterDays: ctfe.formatRepeatAfterDays, | 497 formatRepeatAfterDays: ctfe.formatRepeatAfterDays, |
482 }); | 498 }); |
483 </script> | 499 </script> |
OLD | NEW |