OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 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 """This script runs an automated Cronet performance benchmark. | 6 """This script runs an automated Cronet performance benchmark. |
7 | 7 |
8 This script: | 8 This script: |
9 1. Sets up "USB reverse tethering" which allow network traffic to flow from | 9 1. Sets up "USB reverse tethering" which allow network traffic to flow from |
10 an Android device connected to the host machine via a USB cable. | 10 an Android device connected to the host machine via a USB cable. |
(...skipping 25 matching lines...) Expand all Loading... | |
36 import shutil | 36 import shutil |
37 import subprocess | 37 import subprocess |
38 import sys | 38 import sys |
39 import tempfile | 39 import tempfile |
40 from time import sleep | 40 from time import sleep |
41 import urllib | 41 import urllib |
42 | 42 |
43 REPOSITORY_ROOT = os.path.abspath(os.path.join( | 43 REPOSITORY_ROOT = os.path.abspath(os.path.join( |
44 os.path.dirname(__file__), '..', '..', '..', '..', '..')) | 44 os.path.dirname(__file__), '..', '..', '..', '..', '..')) |
45 | 45 |
46 sys.path.append(os.path.join(REPOSITORY_ROOT, 'tools', 'telemetry')) | 46 sys.path.append(os.path.join(REPOSITORY_ROOT, 'tools', 'perf')) |
aiolos (Not reviewing)
2016/01/15 00:33:04
Nit: You might want to check if it's already in th
eakuefner
2016/01/19 17:21:18
Acknowledged, but I think I'll leave that up to th
| |
47 from chrome_telemetry_build import chromium_config | |
48 sys.path.append(chromium_config.GetTelemetryDir()) | |
47 sys.path.append(os.path.join(REPOSITORY_ROOT, 'build', 'android')) | 49 sys.path.append(os.path.join(REPOSITORY_ROOT, 'build', 'android')) |
48 | 50 |
49 import lighttpd_server | 51 import lighttpd_server |
50 from pylib import constants | 52 from pylib import constants |
51 from pylib import pexpect | 53 from pylib import pexpect |
52 from pylib.device import device_utils | 54 from pylib.device import device_utils |
53 from pylib.device import intent | 55 from pylib.device import intent |
54 from telemetry import android | 56 from telemetry import android |
55 from telemetry import benchmark | 57 from telemetry import benchmark |
56 from telemetry import benchmark_runner | 58 from telemetry import benchmark_runner |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 benchmark_runner.main(runner_config) | 320 benchmark_runner.main(runner_config) |
319 # Shutdown. | 321 # Shutdown. |
320 quic_server.ShutdownQuicServer() | 322 quic_server.ShutdownQuicServer() |
321 shutil.rmtree(quic_server_doc_root) | 323 shutil.rmtree(quic_server_doc_root) |
322 http_server.ShutdownHttpServer() | 324 http_server.ShutdownHttpServer() |
323 shutil.rmtree(http_server_doc_root) | 325 shutil.rmtree(http_server_doc_root) |
324 | 326 |
325 | 327 |
326 if __name__ == '__main__': | 328 if __name__ == '__main__': |
327 main() | 329 main() |
OLD | NEW |