aboutsummaryrefslogtreecommitdiff
path: root/crosperf/benchmark_run.py
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2015-09-02 12:36:47 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-03 21:01:40 -0700
commit5ea9f006b5de0d882d5b51da243806b7cac69938 (patch)
tree388a72fa0792aaa7219672bbe0985c7cf67fb384 /crosperf/benchmark_run.py
parent225fc17884a659647ed53ffd305b5e87533c18eb (diff)
downloadtoolchain-utils-5ea9f006b5de0d882d5b51da243806b7cac69938.tar.gz
Various small cache cleanups.
Add the machine used for running the test to benchmark run; use the actual data from that machine for generating the cache entry for the run. Also make sure, when calculating the common checksums for looking machines up in the cache, that all the machines being used actually have the same checksum. Also add a cache_keys.txt file to the cache directory, to allow people to see what was used for generating the cache entry/checksums. BUG=None TEST=Tested in my directory. Change-Id: Ia4cf8316e920a24becf5d12fd4c8f9a3e30a180f Reviewed-on: https://chrome-internal-review.googlesource.com/228854 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'crosperf/benchmark_run.py')
-rw-r--r--crosperf/benchmark_run.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/crosperf/benchmark_run.py b/crosperf/benchmark_run.py
index dabbdeb2..c8b22000 100644
--- a/crosperf/benchmark_run.py
+++ b/crosperf/benchmark_run.py
@@ -78,6 +78,7 @@ class BenchmarkRun(threading.Thread):
self.test_args,
self.profiler_args,
self.machine_manager,
+ self.machine,
self.label.board,
self.cache_conditions,
self._logger,
@@ -118,6 +119,7 @@ class BenchmarkRun(threading.Thread):
self.timeline.Record(STATUS_WAITING)
# Try to acquire a machine now.
self.machine = self.AcquireMachine()
+ self.cache.machine = self.machine
self.result = self.RunTest(self.machine)
self.cache.remote = self.machine.name
@@ -261,6 +263,7 @@ class MockBenchmarkRun(BenchmarkRun):
self.test_args,
self.profiler_args,
self.machine_manager,
+ self.machine,
self.label.board,
self.cache_conditions,
self._logger,