diff options
author | tonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-07 17:58:28 +0000 |
---|---|---|
committer | tonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-07 17:58:28 +0000 |
commit | fc08c632a509f0bbaf6073e4f4ab0c6869cb3771 (patch) | |
tree | ec9e8d5bb30c80f2ea1f3cad27e991452743deb9 /build | |
parent | 0439abf7532921a18e63939842a54256b1f08d55 (diff) | |
download | chromium_src-fc08c632a509f0bbaf6073e4f4ab0c6869cb3771.zip chromium_src-fc08c632a509f0bbaf6073e4f4ab0c6869cb3771.tar.gz chromium_src-fc08c632a509f0bbaf6073e4f4ab0c6869cb3771.tar.bz2 |
[Telemetry] Escape URLs in "Pages:" list.
They must match the trace names printed by PrintPerfResult, which are also
escaped with the same method.
This patch allows the buildbot log processor to work with the updated page
cyclers.
BUG=None
TEST=tools/perf/run_multipage_benchmarks --browser=system page_cycler tools/perf/page_sets/intl_es_fr_pt-BR.json --pageset-repeat=2
NOTRY=True
Review URL: https://chromiumcodereview.appspot.com/14780004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/android/pylib/perf_tests_helper.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/build/android/pylib/perf_tests_helper.py b/build/android/pylib/perf_tests_helper.py index 7b296a8..cb40850 100644 --- a/build/android/pylib/perf_tests_helper.py +++ b/build/android/pylib/perf_tests_helper.py @@ -19,7 +19,7 @@ RESULT_TYPES = {'unimportant': 'RESULT ', def _EscapePerfResult(s): """Escapes |s| for use in a perf result.""" - return re.sub('[\:|=/#&]', '_', s) + return re.sub('[\:|=/#&,]', '_', s) def GeomMeanAndStdDevFromHistogram(histogram_json): @@ -66,6 +66,11 @@ def _MeanAndStdDevFromList(values): return value, avg, sd +def PrintPages(page_list): + """Prints list of pages to stdout in the format required by perf tests.""" + print 'Pages: [%s]' % ','.join([_EscapePerfResult(p) for p in page_list]) + + def PrintPerfResult(measurement, trace, values, units, result_type='default', print_to_stdout=True): """Prints numerical data to stdout in the format required by perf tests. |