OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 """Archives or replays webpages and creates SKPs in a Google Storage location. | 6 """Archives or replays webpages and creates SKPs in a Google Storage location. |
7 | 7 |
8 To archive webpages and store SKP files (archives should be rarely updated): | 8 To archive webpages and store SKP files (archives should be rarely updated): |
9 | 9 |
10 cd skia | 10 cd skia |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 # break out of the loop. | 283 # break out of the loop. |
284 raise Exception('record_wpr failed for page_set: %s' % page_set) | 284 raise Exception('record_wpr failed for page_set: %s' % page_set) |
285 | 285 |
286 else: | 286 else: |
287 # Get the webpages archive so that it can be replayed. | 287 # Get the webpages archive so that it can be replayed. |
288 self._DownloadWebpagesArchive(wpr_data_file, page_set_json_name) | 288 self._DownloadWebpagesArchive(wpr_data_file, page_set_json_name) |
289 | 289 |
290 run_benchmark_cmd = ( | 290 run_benchmark_cmd = ( |
291 'PYTHONPATH=%s:%s:$PYTHONPATH' % (page_set_dir, self._catapult_dir), | 291 'PYTHONPATH=%s:%s:$PYTHONPATH' % (page_set_dir, self._catapult_dir), |
292 'DISPLAY=%s' % X11_DISPLAY, | 292 'DISPLAY=%s' % X11_DISPLAY, |
293 'timeout', '300', | 293 'timeout', '600', |
294 os.path.join(self._telemetry_binaries_dir, 'run_benchmark'), | 294 os.path.join(self._telemetry_binaries_dir, 'run_benchmark'), |
295 '--extra-browser-args="%s"' % self._browser_args, | 295 '--extra-browser-args="%s"' % self._browser_args, |
296 '--browser=exact', | 296 '--browser=exact', |
297 '--browser-executable=%s' % self._browser_executable, | 297 '--browser-executable=%s' % self._browser_executable, |
298 SKP_BENCHMARK, | 298 SKP_BENCHMARK, |
299 '--page-set-name=%s' % page_set_basename, | 299 '--page-set-name=%s' % page_set_basename, |
300 '--page-set-base-dir=%s' % page_set_dir, | 300 '--page-set-base-dir=%s' % page_set_dir, |
301 '--skp-outdir=%s' % TMP_SKP_DIR, | 301 '--skp-outdir=%s' % TMP_SKP_DIR, |
302 '--also-run-disabled-tests' | 302 '--also-run-disabled-tests' |
303 ) | 303 ) |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 '--skia_tools is specified then the debugger is not run.', | 593 '--skia_tools is specified then the debugger is not run.', |
594 default=False) | 594 default=False) |
595 option_parser.add_option( | 595 option_parser.add_option( |
596 '', '--skp_prefix', | 596 '', '--skp_prefix', |
597 help='Prefix to add to the names of generated SKPs.', | 597 help='Prefix to add to the names of generated SKPs.', |
598 default=None) | 598 default=None) |
599 options, unused_args = option_parser.parse_args() | 599 options, unused_args = option_parser.parse_args() |
600 | 600 |
601 playback = SkPicturePlayback(options) | 601 playback = SkPicturePlayback(options) |
602 sys.exit(playback.Run()) | 602 sys.exit(playback.Run()) |
OLD | NEW |