| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2013 The Chromium Authors. All rights reserved. | 3 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 import gzip | 7 import gzip |
| 8 import logging | 8 import logging |
| 9 import optparse | 9 import optparse |
| 10 import os | 10 import os |
| 11 import pexpect | |
| 12 import re | 11 import re |
| 13 import sys | 12 import sys |
| 14 import time | 13 import time |
| 15 | 14 |
| 16 from pylib import android_commands | 15 from pylib import android_commands |
| 17 from pylib import constants | 16 from pylib import constants |
| 17 from pylib import pexpect |
| 18 | 18 |
| 19 | 19 |
| 20 def _GetSupportedBrowsers(): | 20 def _GetSupportedBrowsers(): |
| 21 # Add aliases for backwards compatibility. | 21 # Add aliases for backwards compatibility. |
| 22 supported_browsers = { | 22 supported_browsers = { |
| 23 'stable': constants.PACKAGE_INFO['chrome_stable'], | 23 'stable': constants.PACKAGE_INFO['chrome_stable'], |
| 24 'beta': constants.PACKAGE_INFO['chrome_beta'], | 24 'beta': constants.PACKAGE_INFO['chrome_beta'], |
| 25 'dev': constants.PACKAGE_INFO['chrome_dev'], | 25 'dev': constants.PACKAGE_INFO['chrome_dev'], |
| 26 'build': constants.PACKAGE_INFO['chrome'], | 26 'build': constants.PACKAGE_INFO['chrome'], |
| 27 } | 27 } |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 _StopTracing(adb, package_info) | 203 _StopTracing(adb, package_info) |
| 204 elif options.download: | 204 elif options.download: |
| 205 _DownloadLatestTrace(adb, options.compress) | 205 _DownloadLatestTrace(adb, options.compress) |
| 206 elif options.time: | 206 elif options.time: |
| 207 _CaptureAndDownloadTimedTrace(adb, package_info, categories, options.time, | 207 _CaptureAndDownloadTimedTrace(adb, package_info, categories, options.time, |
| 208 options.continuous, options.compress) | 208 options.continuous, options.compress) |
| 209 | 209 |
| 210 | 210 |
| 211 if __name__ == '__main__': | 211 if __name__ == '__main__': |
| 212 sys.exit(main()) | 212 sys.exit(main()) |
| OLD | NEW |