Lines Matching +full:before +full:- +full:script
3 # Use of this source code is governed by a BSD-style license that can be
75 Exit code for the script.
82 before, after = self._ProfileTwoOtherBranchesInThisRepo(
85 before, after = self._ProfileTwoOtherBranches(self.args.branch_before,
89 before, after = self._ProfileCurrentAndOtherBranchInThisRepo(
92 before, after = self._ProfileCurrentAndOtherBranch(
96 before, after = self._ProfileLocalChangesAndCurrentBranchInThisRepo()
98 before, after = self._ProfileLocalChangesAndCurrentBranch()
100 conclusions = self._DrawConclusions(before, after)
110 self.after_build_dir, self.args.png_dir, ('before', 'after'),
117 """Freezes a version of the measuring script.
120 not script changes that may happen between the two branches.
133 script fails or is interrupted.
143 A tuple (before, after), where each of before and after is a dict
157 before = self._MeasureCurrentBranch('before', self.before_build_dir)
162 return before, after
178 A tuple (before, after), where each of before and after is a dict
184 before = self._ProfileSeparateRepo('before', self.before_build_dir,
186 return before, after
192 script fails or is interrupted.
200 A tuple (before, after), where each of before and after is a dict
203 the other branch is considered to be "before".
214 before = self._MeasureCurrentBranch('before', self.before_build_dir)
219 return before, after
234 A tuple (before, after), where each of before and after is a dict
237 the other branch is considered to be "before".
242 before = self._ProfileSeparateRepo('before', self.before_build_dir,
245 return before, after
251 script fails or is interrupted.
254 A tuple (before, after), where each of before and after is a dict
257 considered to be "before" and with uncommitted changes is considered to be
270 before = self._MeasureCurrentBranch('before', before_build_dir)
274 return before, after
283 A tuple (before, after), where each of before and after is a dict
286 considered to be "before" and with uncommitted changes is considered to be
325 repo_dir = tempfile.mkdtemp(suffix='-%s' % dir_name)
338 'gclient', 'config', '--unmanaged',
342 cmd.append('--cache-dir=%s' % self.args.cache_dir)
345 RunCommandPropagateErr(['gclient', 'sync', '--force'],
384 RunCommandPropagateErr(['gclient', 'sync', '--force'],
389 cmd = ['ninja', '-C', build_dir, 'pdfium_test']
391 cmd.extend(['-j', '250'])
429 Uses as many workers as configured by --num-workers.
479 '--build-dir=%s' % build_dir
483 command.append('--interesting-section')
486 command.append('--profiler=%s' % self.args.profiler)
490 command.append('--output-path=%s' % profile_file_path)
493 command.append('--png')
496 command.extend(['--pages', self.args.pages])
508 if re.match('^[0-9]+$', output):
548 before = times_before_branch.get(test_case)
550 conclusions.ProcessCase(test_case, before, after)
555 """Prints the conclusions as the script output.
557 Depending on the script args, this can output a human or a machine-readable
587 self._CleanUpOutputFile('before', case_result.case_name)
615 '--branch-before',
616 help='git branch to use as "before" for comparison. '
620 '--branch-after',
625 '--build-dir',
630 '--build-dir-before',
632 'to the build directory for the "before" branch, if '
636 '--cache-dir',
641 '--this-repo',
643 help='use the repository where the script is instead of '
647 'script is killed or crashes the changes can remain '
650 '--profiler',
655 '--interesting-section',
662 '--pages',
664 'are 0-based. "--pages A" will render only page A. '
665 '"--pages A-B" will render pages A to B '
668 '--num-workers',
673 '--output-dir', help='directory to write the profile data output files')
675 '--png-dir',
681 '--png-threshold',
684 help='Requires --png-dir. Threshold above which a png '
687 '--threshold-significant',
693 '--machine-readable',
698 'human-readable.')
700 '--case-order',
703 'output. Accepted values are "after", "before", '
710 # this script.
718 PrintErr('--branch-after requires --branch-before to be specified.')
742 PrintErr('--threshold-significant should receive a positive float')
747 PrintErr('--png-threshold requires --png-dir to be specified.')
751 PrintErr('--png-threshold should receive a positive float')
755 if not re.match(r'^\d+(-\d+)?$', args.pages):
756 PrintErr('Supported formats for --pages are "--pages 7" and '
757 '"--pages 3-6"')