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

Side by Side Diff: build/android/pylib/perf_tests_helper.py

Issue 10693110: [android] Split top-level scripts and libraries from build/android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright on __init__.py, removed #! on some pylib/ files. Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/pylib/flag_changer.py ('k') | build/android/pylib/run_tests_helper.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import re 5 import re
6 6
7 7
8 def _EscapePerfResult(s): 8 def _EscapePerfResult(s):
9 """Escapes |s| for use in a perf result.""" 9 """Escapes |s| for use in a perf result."""
10 # Colons (:) and equal signs (=) are not allowed, and we chose an arbitrary 10 # Colons (:) and equal signs (=) are not allowed, and we chose an arbitrary
11 # limit of 40 chars. 11 # limit of 40 chars.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 output = '%sRESULT %s: %s= %s %s' % (important_marker, 48 output = '%sRESULT %s: %s= %s %s' % (important_marker,
49 _EscapePerfResult(measurement), 49 _EscapePerfResult(measurement),
50 _EscapePerfResult(trace), 50 _EscapePerfResult(trace),
51 value, units) 51 value, units)
52 if avg: 52 if avg:
53 output += '\nAvg %s: %d%s' % (measurement, avg, units) 53 output += '\nAvg %s: %d%s' % (measurement, avg, units)
54 if print_to_stdout: 54 if print_to_stdout:
55 print output 55 print output
56 return output 56 return output
OLDNEW
« no previous file with comments | « build/android/pylib/flag_changer.py ('k') | build/android/pylib/run_tests_helper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698