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

Side by Side Diff: chrome/test/functional/media/ui_perf_test_utils.py

Issue 7031020: Change for preparation for reference-build on perfbot (media) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Minir change. Created 9 years, 7 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Module for performance testing using the psutil library. 7 """Module for performance testing using the psutil library.
8 8
9 Ref: http://code.google.com/p/psutil/wiki/Documentation 9 Ref: http://code.google.com/p/psutil/wiki/Documentation
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 """Get a result string in a format that can be displayed on the PerfBot. 54 """Get a result string in a format that can be displayed on the PerfBot.
55 55
56 The following are acceptable (it can be shown in PerfBot) format: 56 The following are acceptable (it can be shown in PerfBot) format:
57 <*>RESULT <graph_name>: <trace_name>= <value> <units> 57 <*>RESULT <graph_name>: <trace_name>= <value> <units>
58 <*>RESULT <graph_name>: <trace_name>= {<mean>, <std deviation>} <units> 58 <*>RESULT <graph_name>: <trace_name>= {<mean>, <std deviation>} <units>
59 <*>RESULT <graph_name>: <trace_name>= [<value>,value,value,...,] <units> 59 <*>RESULT <graph_name>: <trace_name>= [<value>,value,value,...,] <units>
60 60
61 Args: 61 Args:
62 measurement: measurement string (such as a parameter list). 62 measurement: measurement string (such as a parameter list).
63 modifier: modifier string (such as a file name). 63 modifier: modifier string (such as a file name).
64 trace: trace string (not currently used). 64 trace: trace string used for PerfBot graph name (such as 't' or 't_ref')
dennis_jeffrey 2011/05/19 01:20:13 Add period at end of sentence.
imasaki1 2011/05/20 05:12:01 Done.
65 values: list of values that displayed as "[value1,value2....]". 65 values: list of values that displayed as "[value1,value2....]".
66 units: units of values such as "sec" or "msec". 66 units: units of values such as "sec" or "msec".
67 67
68 Returns: 68 Returns:
69 An output string that contains all information, or the empty string if 69 An output string that contains all information, or the empty string if
70 there is no information available. 70 there is no information available.
71 """ 71 """
72 if not values: 72 if not values:
73 return '' 73 return ''
74 output_string = '%sRESULT %s%s: %s= %s %s' % ( 74 output_string = '%sRESULT %s%s: %s= %s %s' % (
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 if (data_length_for_each > time_index): 249 if (data_length_for_each > time_index):
250 data = measured_data_list[counter][time_index][i] 250 data = measured_data_list[counter][time_index][i]
251 psutil_data.append(data) 251 psutil_data.append(data)
252 name = measured_data_name_list[i] + '-' + str(time_index) 252 name = measured_data_name_list[i] + '-' + str(time_index)
253 output_string_line = UIPerfTestUtils.GetResultStringForPerfBot( 253 output_string_line = UIPerfTestUtils.GetResultStringForPerfBot(
254 parameter_string + '-', name, title, psutil_data, 254 parameter_string + '-', name, title, psutil_data,
255 measured_data_unit_list[i]) 255 measured_data_unit_list[i])
256 if output_string_line: 256 if output_string_line:
257 output_string += output_string_line + '\n' 257 output_string += output_string_line + '\n'
258 return output_string 258 return output_string
OLDNEW
« chrome/test/functional/media/pyauto_media.py ('K') | « chrome/test/functional/media/pyauto_media.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698