Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1589)

Unified Diff: build/android/pylib/perf_tests_helper.py

Issue 23470006: Output units with histogram results. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update unit tests Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/perf_tests_helper.py
diff --git a/build/android/pylib/perf_tests_helper.py b/build/android/pylib/perf_tests_helper.py
index 7bb002ed06daf19457248010b7a59b8ca8138b73..23ce858a4bfd516b21ed748970ac94731fbdd251 100644
--- a/build/android/pylib/perf_tests_helper.py
+++ b/build/android/pylib/perf_tests_helper.py
@@ -128,11 +128,12 @@ def PrintPerfResult(measurement, trace, values, units, result_type='default',
# across different histograms.
assert len(values) == 1
value = values[0]
- output = '%s%s: %s= %s' % (
+ output = '%s%s: %s= %s %s' % (
RESULT_TYPES[result_type],
_EscapePerfResult(measurement),
trace_name,
- value)
+ value,
+ units)
avg, sd = GeomMeanAndStdDevFromHistogram(value)
if avg:
« no previous file with comments | « no previous file | tools/telemetry/telemetry/page/buildbot_page_measurement_results_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698