| OLD | NEW |
| 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 logging | 5 import logging |
| 6 import optparse | 6 import optparse |
| 7 import os | 7 import os |
| 8 import random | 8 import random |
| 9 import sys | 9 import sys |
| 10 import time | 10 import time |
| 11 | 11 |
| 12 from telemetry import page as page_module | |
| 13 from telemetry.core import exceptions | 12 from telemetry.core import exceptions |
| 14 from telemetry.core import wpr_modes | 13 from telemetry.core import wpr_modes |
| 14 from telemetry import page as page_module |
| 15 from telemetry.page.actions import page_action |
| 15 from telemetry.page import page_set as page_set_module | 16 from telemetry.page import page_set as page_set_module |
| 16 from telemetry.page import page_test | 17 from telemetry.page import page_test |
| 17 from telemetry.page.actions import page_action | |
| 18 from telemetry.results import results_options | 18 from telemetry.results import results_options |
| 19 from telemetry.user_story import user_story_filter | 19 from telemetry.user_story import user_story_filter |
| 20 from telemetry.user_story import user_story_set as user_story_set_module | 20 from telemetry.user_story import user_story_set as user_story_set_module |
| 21 from telemetry.util import cloud_storage | 21 from telemetry.util import cloud_storage |
| 22 from telemetry.util import exception_formatter | 22 from telemetry.util import exception_formatter |
| 23 from telemetry.value import failure | 23 from telemetry.value import failure |
| 24 from telemetry.value import skip | 24 from telemetry.value import skip |
| 25 | 25 |
| 26 | 26 |
| 27 class ArchiveError(Exception): | 27 class ArchiveError(Exception): |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 logging.warning('Device is thermally throttled before running ' | 336 logging.warning('Device is thermally throttled before running ' |
| 337 'performance tests, results will vary.') | 337 'performance tests, results will vary.') |
| 338 | 338 |
| 339 | 339 |
| 340 def _CheckThermalThrottling(platform): | 340 def _CheckThermalThrottling(platform): |
| 341 if not platform.CanMonitorThermalThrottling(): | 341 if not platform.CanMonitorThermalThrottling(): |
| 342 return | 342 return |
| 343 if platform.HasBeenThermallyThrottled(): | 343 if platform.HasBeenThermallyThrottled(): |
| 344 logging.warning('Device has been thermally throttled during ' | 344 logging.warning('Device has been thermally throttled during ' |
| 345 'performance tests, results will vary.') | 345 'performance tests, results will vary.') |
| OLD | NEW |