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

Side by Side Diff: tools/telemetry/telemetry/page/page_runner.py

Issue 461043003: Implement --browser=<perf trybot> (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with dependent CLS Created 6 years, 4 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 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 collections 5 import collections
6 import logging 6 import logging
7 import optparse 7 import optparse
8 import os 8 import os
9 import random 9 import random
10 import sys 10 import sys
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 350
351 should_run = decorators.IsEnabled(test, possible_browser) 351 should_run = decorators.IsEnabled(test, possible_browser)
352 352
353 should_run = should_run or finder_options.run_disabled_tests 353 should_run = should_run or finder_options.run_disabled_tests
354 354
355 if not should_run: 355 if not should_run:
356 logging.warning('You are trying to run a disabled test.') 356 logging.warning('You are trying to run a disabled test.')
357 logging.warning('Pass --also-run-disabled-tests to squelch this message.') 357 logging.warning('Pass --also-run-disabled-tests to squelch this message.')
358 return 358 return
359 359
360 if possible_browser.IsRemote():
361 possible_browser.RunRemote()
362 sys.exit(0)
363
360 # Reorder page set based on options. 364 # Reorder page set based on options.
361 pages = _ShuffleAndFilterPageSet(page_set, finder_options) 365 pages = _ShuffleAndFilterPageSet(page_set, finder_options)
362 366
363 if (not finder_options.use_live_sites and 367 if (not finder_options.use_live_sites and
364 browser_options.wpr_mode != wpr_modes.WPR_RECORD): 368 browser_options.wpr_mode != wpr_modes.WPR_RECORD):
365 _UpdatePageSetArchivesIfChanged(page_set) 369 _UpdatePageSetArchivesIfChanged(page_set)
366 pages = _CheckArchives(page_set, pages, results) 370 pages = _CheckArchives(page_set, pages, results)
367 371
368 # Verify credentials path. 372 # Verify credentials path.
369 credentials_path = None 373 credentials_path = None
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 logging.warning('Device is thermally throttled before running ' 571 logging.warning('Device is thermally throttled before running '
568 'performance tests, results will vary.') 572 'performance tests, results will vary.')
569 573
570 574
571 def _CheckThermalThrottling(platform): 575 def _CheckThermalThrottling(platform):
572 if not platform.CanMonitorThermalThrottling(): 576 if not platform.CanMonitorThermalThrottling():
573 return 577 return
574 if platform.HasBeenThermallyThrottled(): 578 if platform.HasBeenThermallyThrottled():
575 logging.warning('Device has been thermally throttled during ' 579 logging.warning('Device has been thermally throttled during '
576 'performance tests, results will vary.') 580 'performance tests, results will vary.')
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698