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

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

Issue 10191026: Revert r6969. (Closed) Base URL: http://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/get_drt.py ('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 optparse 8 import optparse
9 import os 9 import os
10 from os.path import dirname, abspath 10 from os.path import dirname, abspath
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 if platform.system() == 'Windows': 405 if platform.system() == 'Windows':
406 browsers += ['ie'] 406 browsers += ['ie']
407 has_shell = True 407 has_shell = True
408 if 'dartium' in browsers: 408 if 'dartium' in browsers:
409 # Fetch it if necessary. 409 # Fetch it if necessary.
410 get_dartium = ['python', 410 get_dartium = ['python',
411 os.path.join(DART_INSTALL_LOCATION, 'tools', 'get_drt.py'), 411 os.path.join(DART_INSTALL_LOCATION, 'tools', 'get_drt.py'),
412 '--dartium'] 412 '--dartium']
413 # TODO(vsm): It's inconvenient that run_cmd isn't in scope here. 413 # TODO(vsm): It's inconvenient that run_cmd isn't in scope here.
414 # Perhaps there is a better place to put that or this. 414 # Perhaps there is a better place to put that or this.
415 subprocess.call(get_dartium, stdout=sys.stdout, stderr=sys.stderr, 415 subprocess.Popen(get_dartium, shell=has_shell)
416 shell=has_shell)
417 return browsers 416 return browsers
418 417
419 418
420 class CommonBrowserTest(RuntimePerformanceTest): 419 class CommonBrowserTest(RuntimePerformanceTest):
421 """Runs this basic performance tests (Benchpress, some V8 benchmarks) in the 420 """Runs this basic performance tests (Benchpress, some V8 benchmarks) in the
422 browser.""" 421 browser."""
423 422
424 def __init__(self, test_runner): 423 def __init__(self, test_runner):
425 """Args: 424 """Args:
426 test_runner: Reference to the object that notifies us when to run.""" 425 test_runner: Reference to the object that notifies us when to run."""
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 browser, version_name) 627 browser, version_name)
629 self.test.trace_file = os.path.join( 628 self.test.trace_file = os.path.join(
630 'tools', 'testing', 'perf_testing', self.test.result_folder_name, 629 'tools', 'testing', 'perf_testing', self.test.result_folder_name,
631 'dromaeo-%s-%s-%s' % (self.test.cur_time, browser, version_name)) 630 'dromaeo-%s-%s-%s' % (self.test.cur_time, browser, version_name))
632 self.add_svn_revision_to_trace(self.test.trace_file, browser) 631 self.add_svn_revision_to_trace(self.test.trace_file, browser)
633 file_path = '"%s"' % os.path.join(os.getcwd(), dromaeo_path, 632 file_path = '"%s"' % os.path.join(os.getcwd(), dromaeo_path,
634 'index-js.html?%s' % version) 633 'index-js.html?%s' % version)
635 self.test.test_runner.run_cmd( 634 self.test.test_runner.run_cmd(
636 ['python', os.path.join('tools', 'testing', 'run_selenium.py'), 635 ['python', os.path.join('tools', 'testing', 'run_selenium.py'),
637 '--out', file_path, '--browser', browser, 636 '--out', file_path, '--browser', browser,
638 '--timeout', '900', '--mode', 'dromaeo'], self.test.trace_file, 637 '--timeout', '600', '--mode', 'dromaeo'], self.test.trace_file,
639 append=True) 638 append=True)
640 639
641 @staticmethod 640 @staticmethod
642 def get_dromaeo_url_query(browser, version): 641 def get_dromaeo_url_query(browser, version):
643 if browser == 'dartium': 642 if browser == 'dartium':
644 version = version.replace('frog', 'dart') 643 version = version.replace('frog', 'dart')
645 version = version.replace('_','&') 644 version = version.replace('_','&')
646 tags = DromaeoTester.get_valid_dromaeo_tags() 645 tags = DromaeoTester.get_valid_dromaeo_tags()
647 return '|'.join([ '%s&%s' % (version, tag) for tag in tags]) 646 return '|'.join([ '%s&%s' % (version, tag) for tag in tags])
648 647
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 while True: 931 while True:
933 if runner.has_new_code(): 932 if runner.has_new_code():
934 runner.run_test_sequence() 933 runner.run_test_sequence()
935 else: 934 else:
936 time.sleep(200) 935 time.sleep(200)
937 else: 936 else:
938 runner.run_test_sequence() 937 runner.run_test_sequence()
939 938
940 if __name__ == '__main__': 939 if __name__ == '__main__':
941 main() 940 main()
OLDNEW
« no previous file with comments | « tools/get_drt.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698