| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 | 5 |
| 6 """Utility class to build the Skia master BuildFactory's. | 6 """Utility class to build the Skia master BuildFactory's. |
| 7 | 7 |
| 8 Based on gclient_factory.py and adds Skia-specific steps.""" | 8 Based on gclient_factory.py and adds Skia-specific steps.""" |
| 9 | 9 |
| 10 | 10 |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 """Compare the actual image results of SKP rendering to expectations.""" | 540 """Compare the actual image results of SKP rendering to expectations.""" |
| 541 self.AddSlaveScript(script='compare_rendered_skps.py', | 541 self.AddSlaveScript(script='compare_rendered_skps.py', |
| 542 description='CompareRenderedSKPs', | 542 description='CompareRenderedSKPs', |
| 543 is_rebaseline_step=True) | 543 is_rebaseline_step=True) |
| 544 | 544 |
| 545 def RunBench(self): | 545 def RunBench(self): |
| 546 """ Run "bench", piping the output somewhere so we can graph | 546 """ Run "bench", piping the output somewhere so we can graph |
| 547 results over time. """ | 547 results over time. """ |
| 548 self.AddFlavoredSlaveScript(script='run_bench.py', description='RunBench') | 548 self.AddFlavoredSlaveScript(script='run_bench.py', description='RunBench') |
| 549 | 549 |
| 550 def RunNanobench(self): |
| 551 """ Run "nanobench" """ |
| 552 self.AddFlavoredSlaveScript(script='run_nanobench.py', |
| 553 description='RunNanobench') |
| 554 |
| 550 def BenchPictures(self): | 555 def BenchPictures(self): |
| 551 """ Run "bench_pictures" """ | 556 """ Run "bench_pictures" """ |
| 552 self.AddFlavoredSlaveScript(script='bench_pictures.py', | 557 self.AddFlavoredSlaveScript(script='bench_pictures.py', |
| 553 description='BenchPictures') | 558 description='BenchPictures') |
| 554 | 559 |
| 555 def CheckForRegressions(self): | 560 def CheckForRegressions(self): |
| 556 """ Check for benchmark regressions. """ | 561 """ Check for benchmark regressions. """ |
| 557 self.AddSlaveScript(script='check_for_regressions.py', | 562 self.AddSlaveScript(script='check_for_regressions.py', |
| 558 description='CheckForRegressions') | 563 description='CheckForRegressions') |
| 559 | 564 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 self.UploadGMResults() | 715 self.UploadGMResults() |
| 711 self.UploadRenderedSKPs() | 716 self.UploadRenderedSKPs() |
| 712 self.UploadSKImageResults() | 717 self.UploadSKImageResults() |
| 713 self.CompareGMs() | 718 self.CompareGMs() |
| 714 self.CompareRenderedSKPs() | 719 self.CompareRenderedSKPs() |
| 715 | 720 |
| 716 def PerfSteps(self): | 721 def PerfSteps(self): |
| 717 """ Add performance testing BuildSteps. """ | 722 """ Add performance testing BuildSteps. """ |
| 718 self.PreBench() | 723 self.PreBench() |
| 719 self.RunBench() | 724 self.RunBench() |
| 725 self.RunNanobench() |
| 720 self.BenchPictures() | 726 self.BenchPictures() |
| 721 self.PostBench() | 727 self.PostBench() |
| 722 self.CheckForRegressions() | 728 self.CheckForRegressions() |
| 723 self.UploadBenchResults() | 729 self.UploadBenchResults() |
| 724 | 730 |
| 725 def Build(self, role=None, clobber=None): | 731 def Build(self, role=None, clobber=None): |
| 726 """Build and return the complete BuildFactory. | 732 """Build and return the complete BuildFactory. |
| 727 | 733 |
| 728 role: string; the intended role of this builder. The role affects which | 734 role: string; the intended role of this builder. The role affects which |
| 729 steps are run. Known values are given in the utils module. | 735 steps are run. Known values are given in the utils module. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 # Perf-only builder. | 809 # Perf-only builder. |
| 804 if not self._perf_output_basedir: | 810 if not self._perf_output_basedir: |
| 805 raise ValueError( | 811 raise ValueError( |
| 806 'BuildPerfOnly requires perf_output_basedir to be defined.') | 812 'BuildPerfOnly requires perf_output_basedir to be defined.') |
| 807 if self._configuration != CONFIG_RELEASE: | 813 if self._configuration != CONFIG_RELEASE: |
| 808 raise ValueError('BuildPerfOnly should run in %s configuration.' % | 814 raise ValueError('BuildPerfOnly should run in %s configuration.' % |
| 809 CONFIG_RELEASE) | 815 CONFIG_RELEASE) |
| 810 self.PerfSteps() | 816 self.PerfSteps() |
| 811 self.Validate() | 817 self.Validate() |
| 812 return self | 818 return self |
| OLD | NEW |