| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 """Downloads the symbols for the build being tested.""" | 90 """Downloads the symbols for the build being tested.""" |
| 91 download_location = os.path.join(os.getcwd(), 'Build_Symbols') | 91 download_location = os.path.join(os.getcwd(), 'Build_Symbols') |
| 92 if os.path.exists(download_location): | 92 if os.path.exists(download_location): |
| 93 shutil.rmtree(download_location) | 93 shutil.rmtree(download_location) |
| 94 os.makedirs(download_location) | 94 os.makedirs(download_location) |
| 95 | 95 |
| 96 url = self.stress_pref['symbols_dir'] + self.chrome_version | 96 url = self.stress_pref['symbols_dir'] + self.chrome_version |
| 97 # TODO: Add linux symbol_files | 97 # TODO: Add linux symbol_files |
| 98 if self.IsWin(): | 98 if self.IsWin(): |
| 99 url = url + '/win/' | 99 url = url + '/win/' |
| 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 'libplugin_carbon_interpose.dylib']) | 110 'libplugin_carbon_interpose.dylib']) |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 | 797 |
| 798 if self.IsMac(): | 798 if self.IsMac(): |
| 799 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' |
| 800 zombie_count = int(commands.getoutput(zombie)) | 800 zombie_count = int(commands.getoutput(zombie)) |
| 801 if zombie_count > 0: | 801 if zombie_count > 0: |
| 802 logging.info('WE HAVE ZOMBIES = %d' % zombie_count) | 802 logging.info('WE HAVE ZOMBIES = %d' % zombie_count) |
| 803 | 803 |
| 804 | 804 |
| 805 if __name__ == '__main__': | 805 if __name__ == '__main__': |
| 806 pyauto_functional.Main() | 806 pyauto_functional.Main() |
| OLD | NEW |