From 04dc5dc8547dbfbe524cf35ac39537346ad749bb Mon Sep 17 00:00:00 2001 From: Yunlian Jiang Date: Tue, 23 Apr 2013 15:05:05 -0700 Subject: Adding support of telemetry to crosperf BUG=None TEST=run crosperf with pyauto/telemetry test with/without cache. all pass. Change-Id: If07ac020a9107a79d5780a58fd6dcc924d07f07f Reviewed-on: https://gerrit-int.chromium.org/36594 Reviewed-by: Luis Lozano Commit-Queue: Yunlian Jiang Tested-by: Yunlian Jiang Reviewed-on: https://gerrit-int.chromium.org/39241 Reviewed-by: Yunlian Jiang --- crosperf/results_organizer.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'crosperf/results_organizer.py') diff --git a/crosperf/results_organizer.py b/crosperf/results_organizer.py index 2e5c9296..6274a484 100644 --- a/crosperf/results_organizer.py +++ b/crosperf/results_organizer.py @@ -1,6 +1,9 @@ #!/usr/bin/python -# Copyright 2012 Google Inc. All Rights Reserved. +# 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. + """Parse data from benchmark_runs for tabulator.""" import re @@ -50,15 +53,15 @@ class ResultOrganizer(object): continue benchmark = benchmark_run.benchmark key_filter_on = (benchmark.key_results_only and - "PyAutoPerfTest" in benchmark.name + benchmark.autotest_name and - "perf." not in benchmark.autotest_args) - for autotest_key in benchmark_run.result.keyvals: + "PyAutoPerfTest" in benchmark.name + benchmark.test_name + and "perf." not in benchmark.test_args) + for test_key in benchmark_run.result.keyvals: if (key_filter_on and - not any([key for key in self.key_filter if key in autotest_key]) + not any([key for key in self.key_filter if key in test_key]) ): continue - result_value = benchmark_run.result.keyvals[autotest_key] - cur_dict[autotest_key] = result_value + result_value = benchmark_run.result.keyvals[test_key] + cur_dict[test_key] = result_value self._DuplicatePass() def _DuplicatePass(self): -- cgit v1.2.3