| OLD | NEW |
| 1 #!/usr/bin/python2.4 | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 5 | 4 |
| 6 """Command for measuring how long pages take to load in a browser. | 5 """Command for measuring how long pages take to load in a browser. |
| 7 | 6 |
| 8 Prerequisites: | 7 Prerequisites: |
| 9 1. The command_line package from tools/site_compare | 8 1. The command_line package from tools/site_compare |
| 10 2. Either the IE BHO or Firefox extension (or both) | 9 2. Either the IE BHO or Firefox extension (or both) |
| 11 | 10 |
| 12 Installation: | 11 Installation: |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 def LogResult(url, proc, wnd, result): | 43 def LogResult(url, proc, wnd, result): |
| 45 """Write the result of the browse to the log file.""" | 44 """Write the result of the browse to the log file.""" |
| 46 log_file.write(result) | 45 log_file.write(result) |
| 47 | 46 |
| 48 log_file = open(command["--logfile"], "w") | 47 log_file = open(command["--logfile"], "w") |
| 49 | 48 |
| 50 browser_iterate.Iterate(command, LogResult) | 49 browser_iterate.Iterate(command, LogResult) |
| 51 | 50 |
| 52 # Close the log file and return. We're done. | 51 # Close the log file and return. We're done. |
| 53 log_file.close() | 52 log_file.close() |
| 54 | |
| OLD | NEW |