aboutsummaryrefslogtreecommitdiff
path: root/crosperf/benchmark_run.py
diff options
context:
space:
mode:
authorDenis Nikitin <denik@google.com>2019-08-30 09:10:39 -0700
committerDenis Nikitin <denik@chromium.org>2019-09-10 05:34:30 +0000
commit9d114045ddf617b67fd7af5aaccd0b5dcd4282ea (patch)
tree741ebc440d0ade50048ea78513830f84ed35875a /crosperf/benchmark_run.py
parent0f8dae198451cfc73eb6c509cbddbe9c159ea45f (diff)
downloadtoolchain-utils-9d114045ddf617b67fd7af5aaccd0b5dcd4282ea.tar.gz
crosperf: Add dut config arguments to experiment
In global settings added optional arguments: "cooldown_time" - wait time prior running a benchmark (default: 0), "cooldown_temp" - temperature threshold for waiting (default: 40), "governor" - CPU governor (default: performance), "cpu_usage" - Restrict CPU usage to specific configurations (default: all). "turbostat" argument is moved from benchmark to global settings. Current CL does not apply configurations. Instead it just propagates parameters to SuiteRunner class through "dut_config" dictionary. BUG=chromium:966514 TEST=Unitest and local HW tests passed. Change-Id: I1b2a65883e5176fdde49c9858ebe62a097df89cb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1778515 Tested-by: Denis Nikitin <denik@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Diffstat (limited to 'crosperf/benchmark_run.py')
-rw-r--r--crosperf/benchmark_run.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/crosperf/benchmark_run.py b/crosperf/benchmark_run.py
index f5fe3fda..3cd4479b 100644
--- a/crosperf/benchmark_run.py
+++ b/crosperf/benchmark_run.py
@@ -2,6 +2,7 @@
# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+
"""Module of benchmark runs."""
from __future__ import print_function
@@ -40,6 +41,7 @@ class BenchmarkRun(threading.Thread):
logger_to_use,
log_level,
share_cache,
+ dut_config,
enable_aslr=False):
threading.Thread.__init__(self)
self.name = name
@@ -54,7 +56,7 @@ class BenchmarkRun(threading.Thread):
self.run_completed = False
self.machine_manager = machine_manager
self.suite_runner = SuiteRunner(
- self._logger, self.log_level, enable_aslr=enable_aslr)
+ dut_config, self._logger, self.log_level, enable_aslr=enable_aslr)
self.machine = None
self.cache_conditions = cache_conditions
self.runs_complete = 0