| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # 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 |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from recipe_engine import recipe_api | 5 from recipe_engine import recipe_api |
| 6 | 6 |
| 7 | 7 |
| 8 # List of the benchmark that we run during the profiling step. | 8 # List of the benchmark that we run during the profiling step. |
| 9 # | 9 # |
| 10 # TODO(sebmarchand): Move this into a BenchmarkSuite in telemetry, this way | 10 # TODO(sebmarchand): Move this into a BenchmarkSuite in telemetry, this way |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 self.m.gclient.set_config(bot_config['gclient_config']) | 100 self.m.gclient.set_config(bot_config['gclient_config']) |
| 101 | 101 |
| 102 # Augment the solution if needed. | 102 # Augment the solution if needed. |
| 103 self.m.gclient.c.solutions[0].url += bot_config.get('url_suffix', '') | 103 self.m.gclient.c.solutions[0].url += bot_config.get('url_suffix', '') |
| 104 | 104 |
| 105 if self.m.properties.get('slavename') != 'fake_slave': | 105 if self.m.properties.get('slavename') != 'fake_slave': |
| 106 self.m.chromium.taskkill() | 106 self.m.chromium.taskkill() |
| 107 | 107 |
| 108 self.m.bot_update.ensure_checkout(force=True) | 108 self.m.bot_update.ensure_checkout(force=True) |
| 109 if bot_config.get('patch_root'): | 109 if bot_config.get('patch_root'): |
| 110 self.m.path['checkout'] = self.m.infra_paths['slave_build'].join( | 110 self.m.path['checkout'] = self.m.path['slave_build'].join( |
| 111 bot_config.get('patch_root')) | 111 bot_config.get('patch_root')) |
| 112 | 112 |
| 113 # First step: compilation of the instrumented build. | 113 # First step: compilation of the instrumented build. |
| 114 self._compile_instrumented_image(bot_config) | 114 self._compile_instrumented_image(bot_config) |
| 115 | 115 |
| 116 # Second step: profiling of the instrumented build. | 116 # Second step: profiling of the instrumented build. |
| 117 self._run_pgo_benchmarks() | 117 self._run_pgo_benchmarks() |
| 118 | 118 |
| 119 # Third step: Compilation of the optimized build, this will use the | 119 # Third step: Compilation of the optimized build, this will use the |
| 120 # profile data files produced by the previous step. | 120 # profile data files produced by the previous step. |
| 121 self._compile_optimized_image(bot_config) | 121 self._compile_optimized_image(bot_config) |
| OLD | NEW |