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

Side by Side Diff: tools/testing/perf_testing/run_perf_tests.py

Issue 9980019: Add a separate perf graph for dromaeo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « tools/testing/perf_testing/dromaeo.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import datetime 7 import datetime
8 import getpass 8 import getpass
9 import math 9 import math
10 from matplotlib.font_manager import FontProperties 10 from matplotlib.font_manager import FontProperties
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 out.write(' <li><a href=data' + \ 228 out.write(' <li><a href=data' + \
229 '''/%(data)s/%(os)s/%(file)s>%(file)s</a></li>\n''' % \ 229 '''/%(data)s/%(os)s/%(file)s>%(file)s</a></li>\n''' % \
230 {'data': data, 'os': utils.GuessOS(), 'file': f}) 230 {'data': data, 'os': utils.GuessOS(), 'file': f})
231 out.write(' </ul>\n </body>\n</html>') 231 out.write(' </ul>\n </body>\n</html>')
232 out.close() 232 out.close()
233 233
234 shutil.rmtree(os.path.join('appengine', 'static', 'graphs'), 234 shutil.rmtree(os.path.join('appengine', 'static', 'graphs'),
235 ignore_errors=True) 235 ignore_errors=True)
236 shutil.copytree('graphs', os.path.join('appengine', 'static', 'graphs')) 236 shutil.copytree('graphs', os.path.join('appengine', 'static', 'graphs'))
237 shutil.copyfile('index.html', os.path.join('appengine', 'static', 237 shutil.copyfile('index.html', os.path.join('appengine', 'static',
238 'index.html')) 238 'index.html'))
Emily Fortuna 2012/04/04 23:13:51 Do you also want to edit index.html so that there
vsm 2012/04/05 17:01:52 Done.
239 shutil.copyfile('dromaeo.html', os.path.join('appengine', 'static',
240 'dromaeo.html'))
239 shutil.copyfile('data.html', os.path.join('appengine', 'static', 241 shutil.copyfile('data.html', os.path.join('appengine', 'static',
240 'data.html')) 242 'data.html'))
241 p = subprocess.Popen([os.path.join('..', '..', '..', 'third_party', 243 p = subprocess.Popen([os.path.join('..', '..', '..', 'third_party',
242 'appengine-python', 'appcfg.py'), 'update', 244 'appengine-python', 'appcfg.py'), 'update',
243 'appengine/'], shell=HAS_SHELL, stdin=subprocess.PIPE) 245 'appengine/'], shell=HAS_SHELL, stdin=subprocess.PIPE)
244 p.stdin.write(username + '\n') 246 p.stdin.write(username + '\n')
245 p.stdin.write(password + '\n') 247 p.stdin.write(password + '\n')
246 p.communicate() 248 p.communicate()
247 249
248 250
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 run_test_sequence(cl, size, perf, dromaeo, dsize, no_build, graph_only, 929 run_test_sequence(cl, size, perf, dromaeo, dsize, no_build, graph_only,
928 username, password) 930 username, password)
929 else: 931 else:
930 time.sleep(SLEEP_TIME) 932 time.sleep(SLEEP_TIME)
931 else: 933 else:
932 run_test_sequence(cl, size, perf, dromaeo, dsize, no_build, graph_only, 934 run_test_sequence(cl, size, perf, dromaeo, dsize, no_build, graph_only,
933 username, password) 935 username, password)
934 936
935 if __name__ == '__main__': 937 if __name__ == '__main__':
936 main() 938 main()
OLDNEW
« no previous file with comments | « tools/testing/perf_testing/dromaeo.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698