summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-18 22:29:59 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-18 22:29:59 +0000
commitbb192b87059a76b89fbc20ad08347c28656e838d (patch)
tree7b1e95682fafc3fc5905a4a4e9c85d91eb1a22b2
parent0260d84c0d2a22faa7fab30b4dc2d0810019fa71 (diff)
downloadchromium_src-bb192b87059a76b89fbc20ad08347c28656e838d.zip
chromium_src-bb192b87059a76b89fbc20ad08347c28656e838d.tar.gz
chromium_src-bb192b87059a76b89fbc20ad08347c28656e838d.tar.bz2
[Telemetry] Make histograms unimportant by default.
Any results marked important show up on the buildbot's step summary. Histogram output is too verbose for that. See: http://build.chromium.org/p/chromium.perf/builders/Linux%20Perf%20%284%29/builds/3113 This brings us back to the previous behavior before page cyclers were converted to telemetry. BUG=196411 TEST=tools/perf/run_multipage_benchmarks --browser=system page_cycler tools/perf/page_sets/page_cycler/moz.json Review URL: https://codereview.chromium.org/12538016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188856 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--tools/perf/perf_tools/histogram_measurement.py3
-rw-r--r--tools/telemetry/telemetry/page/page_benchmark_results.py8
-rw-r--r--tools/telemetry/telemetry/page/page_benchmark_value.py2
3 files changed, 6 insertions, 7 deletions
diff --git a/tools/perf/perf_tools/histogram_measurement.py b/tools/perf/perf_tools/histogram_measurement.py
index 507800c..267329a 100644
--- a/tools/perf/perf_tools/histogram_measurement.py
+++ b/tools/perf/perf_tools/histogram_measurement.py
@@ -26,7 +26,8 @@ class HistogramMeasurement(object):
return
new_histogram = histogram_module.SubtractHistogram(
data, self._start_values[page.url + self.name])
- results.Add(self.name, self.units, new_histogram, data_type='histogram')
+ results.Add(self.name, self.units, new_histogram,
+ data_type='unimportant-histogram')
@property
def histogram_function(self):
diff --git a/tools/telemetry/telemetry/page/page_benchmark_results.py b/tools/telemetry/telemetry/page/page_benchmark_results.py
index 89949cb..4086c9a 100644
--- a/tools/telemetry/telemetry/page/page_benchmark_results.py
+++ b/tools/telemetry/telemetry/page/page_benchmark_results.py
@@ -128,11 +128,9 @@ class PageBenchmarkResults(page_test.PageTestResults):
results_summary.iteritems()):
measurement, units, data_type = measurement_units_type
- if data_type == 'histogram':
- # For histograms, the _by_url data is important.
- by_url_data_type = 'histogram'
+ if 'histogram' in data_type:
+ by_url_data_type = 'unimportant-histogram'
else:
- # For non-histograms, the _by_url data is unimportant.
by_url_data_type = 'unimportant'
if '.' in measurement:
measurement, trace = measurement.split('.', 1)
@@ -147,6 +145,6 @@ class PageBenchmarkResults(page_test.PageTestResults):
# For histograms, we don't print the average data, only the _by_url,
# unless there is only 1 page in which case the _by_urls are omitted.
- if data_type != 'histogram' or len(value_url_list) == 1:
+ if 'histogram' not in data_type or len(value_url_list) == 1:
values = [i[0] for i in value_url_list]
self._PrintPerfResult(measurement, trace, values, units, data_type)
diff --git a/tools/telemetry/telemetry/page/page_benchmark_value.py b/tools/telemetry/telemetry/page/page_benchmark_value.py
index 74a6d171..0977125 100644
--- a/tools/telemetry/telemetry/page/page_benchmark_value.py
+++ b/tools/telemetry/telemetry/page/page_benchmark_value.py
@@ -23,7 +23,7 @@ class PageBenchmarkValue(object):
@property
def output_value(self):
- if self.data_type == 'histogram':
+ if 'histogram' in self.data_type:
(mean, _) = perf_tests_helper.GeomMeanAndStdDevFromHistogram(self.value)
return mean
elif isinstance(self.value, list):