From e2b0d3ef23cfdf19db4f39cb900845a35c3af82b Mon Sep 17 00:00:00 2001 From: Zhizhou Yang Date: Thu, 15 Nov 2018 13:55:12 -0800 Subject: crosperf: Passing dso and weight to result_cache.py To generate and collect dso sample count, this patch passes dso and weight into result_cache.py, by setting them as members of Benchmark object. Meantime, fixed all related unit tests. BUG=chromium:902785 TEST=Passed all unit tests and sample tests locally. Change-Id: I483a00d199d48fd5e77d882d7ac81bf93b6940df Reviewed-on: https://chromium-review.googlesource.com/1338344 Commit-Ready: Zhizhou Yang Tested-by: Zhizhou Yang Reviewed-by: Caroline Tice --- crosperf/experiment_factory.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crosperf/experiment_factory.py') diff --git a/crosperf/experiment_factory.py b/crosperf/experiment_factory.py index 60785fa3..aa0e4cf0 100644 --- a/crosperf/experiment_factory.py +++ b/crosperf/experiment_factory.py @@ -258,9 +258,10 @@ class ExperimentFactory(object): iterations, rm_chroot_tmp, perf_args, suite, show_all_results, retries, run_local) else: - benchmark = Benchmark(benchmark_name, test_name, test_args, iterations, - rm_chroot_tmp, perf_args, suite, - show_all_results, retries, run_local, weight) + benchmark = Benchmark(benchmark_name, test_name, test_args, + iterations, rm_chroot_tmp, perf_args, suite, + show_all_results, retries, run_local, cwp_dso, + weight) benchmarks.append(benchmark) else: if test_name == 'all_graphics_perf': -- cgit v1.2.3