| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 | 6 |
| 7 """ | 7 """ |
| 8 Stess Tests for Google Chrome. | 8 Stess Tests for Google Chrome. |
| 9 | 9 |
| 10 This script runs 4 different stress tests: | 10 This script runs 4 different stress tests: |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 symbol_files = ['chrome.dll.pdb', 'chrome.exe.pdb'] | 100 symbol_files = ['chrome.dll.pdb', 'chrome.exe.pdb'] |
| 101 elif self.IsMac(): | 101 elif self.IsMac(): |
| 102 url = url + '/mac/' | 102 url = url + '/mac/' |
| 103 symbol_files = map(urllib.quote, | 103 symbol_files = map(urllib.quote, |
| 104 ['Google Chrome Framework.framework', | 104 ['Google Chrome Framework.framework', |
| 105 'Google Chrome Helper.app', | 105 'Google Chrome Helper.app', |
| 106 'Google Chrome.app', | 106 'Google Chrome.app', |
| 107 'crash_inspector', | 107 'crash_inspector', |
| 108 'crash_report_sender', | 108 'crash_report_sender', |
| 109 'ffmpegsumo.so', | 109 'ffmpegsumo.so', |
| 110 'libexif.dylib', | |
| 111 'libplugin_carbon_interpose.dylib']) | 110 'libplugin_carbon_interpose.dylib']) |
| 112 index = 0 | 111 index = 0 |
| 113 symbol_files = ['%s-%s-i386.breakpad' % (sym_file, self.chrome_version) \ | 112 symbol_files = ['%s-%s-i386.breakpad' % (sym_file, self.chrome_version) \ |
| 114 for sym_file in symbol_files] | 113 for sym_file in symbol_files] |
| 115 logging.info(symbol_files) | 114 logging.info(symbol_files) |
| 116 | 115 |
| 117 for sym_file in symbol_files: | 116 for sym_file in symbol_files: |
| 118 sym_url = url + sym_file | 117 sym_url = url + sym_file |
| 119 logging.info(sym_url) | 118 logging.info(sym_url) |
| 120 download_sym_file = os.path.join(download_location, sym_file) | 119 download_sym_file = os.path.join(download_location, sym_file) |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 | 797 |
| 799 if self.IsMac(): | 798 if self.IsMac(): |
| 800 zombie = 'ps -el | grep Chrom | grep -v grep | grep Z | wc -l' | 799 zombie = 'ps -el | grep Chrom | grep -v grep | grep Z | wc -l' |
| 801 zombie_count = int(commands.getoutput(zombie)) | 800 zombie_count = int(commands.getoutput(zombie)) |
| 802 if zombie_count > 0: | 801 if zombie_count > 0: |
| 803 logging.info('WE HAVE ZOMBIES = %d' % zombie_count) | 802 logging.info('WE HAVE ZOMBIES = %d' % zombie_count) |
| 804 | 803 |
| 805 | 804 |
| 806 if __name__ == '__main__': | 805 if __name__ == '__main__': |
| 807 pyauto_functional.Main() | 806 pyauto_functional.Main() |
| OLD | NEW |