| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 from skypy.find_tests import find_tests | 6 from skypy.find_tests import find_tests |
| 7 from skypy.paths import Paths | 7 from skypy.paths import Paths |
| 8 import argparse | 8 import argparse |
| 9 import os | 9 import os |
| 10 import re | 10 import re |
| 11 import requests | 11 import requests |
| 12 import skypy.configuration as configuration | 12 import skypy.configuration as configuration |
| 13 import skypy.skyserver | 13 import skypy.skyserver |
| 14 import subprocess | 14 import subprocess |
| 15 | 15 |
| 16 | 16 |
| 17 SUPPORTED_MIME_TYPES = [ | 17 SUPPORTED_MIME_TYPES = [ |
| 18 'text/html', | |
| 19 'text/sky', | 18 'text/sky', |
| 20 'text/plain', | 19 'application/dart', |
| 21 ] | 20 ] |
| 22 HTTP_PORT = 9999 | 21 HTTP_PORT = 9999 |
| 23 URL_ROOT = 'http://localhost:%s/' % HTTP_PORT | 22 URL_ROOT = 'http://localhost:%s/' % HTTP_PORT |
| 24 DASHBOARD_URL = 'https://chromeperf.appspot.com/add_point' | 23 DASHBOARD_URL = 'https://chromeperf.appspot.com/add_point' |
| 25 BENCHMARKS_DIR = 'benchmarks' | 24 BENCHMARKS_DIR = 'benchmarks' |
| 26 | 25 |
| 27 | 26 |
| 28 def values_from_output(output): | 27 def values_from_output(output): |
| 29 # Parse out the raw values from the PerfRunner output: | 28 # Parse out the raw values from the PerfRunner output: |
| 30 # values 90, 89, 93 ms | 29 # values 90, 89, 93 ms |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 try: | 121 try: |
| 123 harness.main() | 122 harness.main() |
| 124 except (KeyboardInterrupt, SystemExit): | 123 except (KeyboardInterrupt, SystemExit): |
| 125 pass | 124 pass |
| 126 finally: | 125 finally: |
| 127 harness.shutdown() | 126 harness.shutdown() |
| 128 | 127 |
| 129 | 128 |
| 130 if __name__ == '__main__': | 129 if __name__ == '__main__': |
| 131 main() | 130 main() |
| OLD | NEW |