Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1303)

Unified Diff: ct/res/imp/chromium-perf-sk.html

Issue 1411423003: [CT] Add ability to run unlanded benchmarks on Chromium Perf (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Add documentation link Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ct/res/imp/chromium-perf-sk.html
diff --git a/ct/res/imp/chromium-perf-sk.html b/ct/res/imp/chromium-perf-sk.html
index ca7aaeae6364cf54fa24e1e7fc5943a168d47b05..449c1a08f5b41841f4beaf30a24c28f97bd897d7 100644
--- a/ct/res/imp/chromium-perf-sk.html
+++ b/ct/res/imp/chromium-perf-sk.html
@@ -30,6 +30,10 @@
width: 40em;
}
+ .hidden {
+ display: none;
+ }
+
.short-field {
width: 5em;
}
@@ -75,7 +79,9 @@
<template is="dom-repeat" items="{{benchmarks}}">
<div id="{{item}}">{{item}}</div>
</template>
+ <div id="custom">custom</div>
</iron-selector>
+ <paper-input value="" id="custom_benchmark_name" class="hidden" label="Enter name of your custom benchmark"></paper-input>
</td>
</tr>
@@ -169,6 +175,20 @@
</tr>
<tr>
+ <td>
+ Telemetry Git patch (optional)<br/>
+ Applied to Chromium ToT<br/>
+ Documentation is <a href="https://docs.google.com/document/d/1GhqosQcwsy6F-eBAmFn_ITDF7_Iv_rY9FhCKwAnk9qQ/edit#heading=h.i2mgtio5tori">here</a>
dogben 2015/10/20 15:17:26 This link points to the wrong section.
rmistry 2015/10/20 17:47:48 Done.
+ </td>
+ <td>
+ <patch-sk id="benchmark_patch"
+ patch-type="chromium"
+ cl-description="{{benchmarkClDescription}}">
+ </patch-sk>
+ </td>
+ </tr>
+
+ <tr>
<td>Repeat this task</td>
<td>
<repeat-after-days-sk id="repeat_after_days"></repeat-after-days-sk>
@@ -225,16 +245,18 @@
},
chromiumClDescription: String,
skiaClDescription: String,
+ benchmarkClDescription: String,
},
observers: [
- "clDescriptionChanged(chromiumClDescription, skiaClDescription)"
+ "clDescriptionChanged(chromiumClDescription, skiaClDescription, benchmarkClDescription)"
],
ready: function() {
var that = this;
this.$.benchmark_name.addEventListener('click', function(e) {
that.setRunInParallel();
+ that.$.custom_benchmark_name.classList.toggle("hidden", that.$.benchmark_name.selected != "custom");
});
this.$.target_platform.addEventListener('click', function(e) {
that.platformChanged();
@@ -293,8 +315,8 @@
}
},
- clDescriptionChanged: function(chromiumClDescription, skiaClDescription) {
- if (!chromiumClDescription && !skiaClDescription) {
+ clDescriptionChanged: function(chromiumClDescription, skiaClDescription, benchmarkClDescription) {
+ if (!chromiumClDescription && !skiaClDescription && !benchmarkClDescription) {
this.$.desc.value = "";
} else {
var str = "Testing ";
@@ -310,13 +332,21 @@
str += skiaClDescription;
prev = true;
}
+ if (benchmarkClDescription) {
+ if (prev) {
+ str += " and ";
dogben 2015/10/20 15:17:26 Nit: maybe " with "? I think "with" vs "and" depen
rmistry 2015/10/20 17:47:48 Makes sense. Done.
+ }
+ str += benchmarkClDescription;
+ prev = true;
+ }
this.$.desc.value = str;
}
},
validateTask: function() {
if (!this.$.chromium_patch.validate() ||
- !this.$.skia_patch.validate()) {
+ !this.$.skia_patch.validate() ||
+ !this.$.benchmark_patch.validate()) {
return;
}
if (! this.$.desc.value) {
dogben 2015/10/20 15:17:26 Maybe check here that getBenchmarkName returns non
rmistry 2015/10/20 17:47:48 Done.
@@ -332,9 +362,16 @@
this.$.confirm_dialog.close()
},
+ getBenchmarkName: function() {
+ if (this.$.benchmark_name.selected == "custom") {
+ return this.$.custom_benchmark_name.value;
+ }
+ return this.$.benchmark_name.selected;
+ },
+
queueTask: function() {
var params = {};
- params["benchmark"] = this.$.benchmark_name.selected;
+ params["benchmark"] = this.getBenchmarkName();
params["platform"] = this.$.target_platform.selected;
params["page_sets"] = this.$.page_sets.selected;
params["repeat_runs"] = this.$.repeat_runs.selected;
@@ -345,6 +382,7 @@
params["desc"] = this.$.desc.value;
params["chromium_patch"] = this.$.chromium_patch.patch;
params["skia_patch"] = this.$.skia_patch.patch;
+ params["benchmark_patch"] = this.$.benchmark_patch.patch;
params["repeat_after_days"] = this.$.repeat_after_days.selected;
var that = this;
« ct/go/worker_scripts/run_chromium_perf/main.go ('K') | « ct/res/imp/chromium-perf-runs-sk.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698