aboutsummaryrefslogtreecommitdiff
path: root/crosperf/experiment.py
diff options
context:
space:
mode:
authorZhizhou Yang <zhizhouy@google.com>2018-11-09 11:44:10 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-13 03:32:49 -0800
commit1a199b1827d125b89c8cf66c8d5680bf14a1b857 (patch)
treefd963d10454b318e4c83f9627c2be3546a3a6a15 /crosperf/experiment.py
parentaa8d023f42fa991587e291e067820b2bbd6031a3 (diff)
downloadtoolchain-utils-1a199b1827d125b89c8cf66c8d5680bf14a1b857.tar.gz
crosperf: introduce cwp_dso and weight for CWP approximation
This patch does initial work to support CWP approximation in crosperf. It introduceds a global option cwp_dso, which is used to specify the type of DSO to use for approximation; an option weight in benchmark setting, which decides the weight of each benchmark in test. This patch also contains some value checks for these two options. BUG=chromium:902785 TEST=Passed all unit tests and sample tests locally. Change-Id: I565c4baf0630ce6c1b62ad0398d05a5f336aac6e Reviewed-on: https://chromium-review.googlesource.com/1323473 Commit-Ready: Zhizhou Yang <zhizhouy@google.com> Tested-by: Zhizhou Yang <zhizhouy@google.com> Reviewed-by: Caroline Tice <cmtice@chromium.org>
Diffstat (limited to 'crosperf/experiment.py')
-rw-r--r--crosperf/experiment.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/crosperf/experiment.py b/crosperf/experiment.py
index 987318a5..c4ed5967 100644
--- a/crosperf/experiment.py
+++ b/crosperf/experiment.py
@@ -27,7 +27,7 @@ class Experiment(object):
def __init__(self, name, remote, working_directory, chromeos_root,
cache_conditions, labels, benchmarks, experiment_file, email_to,
acquire_timeout, log_dir, log_level, share_cache,
- results_directory, locks_directory):
+ results_directory, locks_directory, cwp_dso):
self.name = name
self.working_directory = working_directory
self.remote = remote
@@ -53,6 +53,7 @@ class Experiment(object):
# locking mechanism.
self.locks_dir = locks_directory
self.locked_machines = []
+ self.cwp_dso = cwp_dso
if not remote:
raise RuntimeError('No remote hosts specified')