Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
testing.tools.safetynet_compare.CompareRun Class Reference
+ Collaboration diagram for testing.tools.safetynet_compare.CompareRun:

Public Member Functions

 __init__ (self, args)
 
 Run (self)
 
 RunSingleTestCase (self, run_label, build_dir, test_case)
 

Public Attributes

 git = GitHelper()
 
 args = args
 
 safe_script_dir = self.args.build_dir
 
 safe_measure_script_path
 
list test_cases = []
 
 after_build_dir = self.args.build_dir
 
 before_build_dir = self.args.build_dir_before
 

Protected Member Functions

 _InitPaths (self)
 
 _FreezeMeasureScript (self)
 
 _ProfileTwoOtherBranchesInThisRepo (self, before_branch, after_branch)
 
 _ProfileTwoOtherBranches (self, before_branch, after_branch)
 
 _ProfileCurrentAndOtherBranchInThisRepo (self, other_branch)
 
 _ProfileCurrentAndOtherBranch (self, other_branch)
 
 _ProfileLocalChangesAndCurrentBranchInThisRepo (self)
 
 _ProfileLocalChangesAndCurrentBranch (self)
 
 _ProfileSeparateRepo (self, run_label, relative_build_dir, branch)
 
 _CreateTempRepo (self, dir_name, relative_build_dir, branch)
 
 _CheckoutBranch (self, branch)
 
 _StashLocalChanges (self)
 
 _RestoreLocalChanges (self)
 
 _BuildCurrentBranch (self, build_dir)
 
 _MeasureCurrentBranch (self, run_label, build_dir)
 
 _RunSync (self, run_label, build_dir)
 
 _RunAsync (self, run_label, build_dir)
 
 _MoveImages (self, test_case, run_label)
 
 _GetProfileFilePath (self, run_label, test_case)
 
 _DrawConclusions (self, times_before_branch, times_after_branch)
 
 _PrintConclusions (self, conclusions_dict)
 
 _CleanUp (self, conclusions)
 
 _CleanUpOutputFile (self, run_label, case_name)
 

Detailed Description

A comparison between two branches of pdfium.

Definition at line 35 of file safetynet_compare.py.

Constructor & Destructor Documentation

◆ __init__()

testing.tools.safetynet_compare.CompareRun.__init__ ( self,
args )

Definition at line 38 of file safetynet_compare.py.

Member Function Documentation

◆ _BuildCurrentBranch()

testing.tools.safetynet_compare.CompareRun._BuildCurrentBranch ( self,
build_dir )
protected
Synchronizes and builds the current version of pdfium.

Args:
  build_dir: String with path to build directory

Definition at line 377 of file safetynet_compare.py.

Referenced by testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranch(), testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranchInThisRepo(), testing.tools.safetynet_compare.CompareRun._ProfileLocalChangesAndCurrentBranchInThisRepo(), testing.tools.safetynet_compare.CompareRun._ProfileSeparateRepo(), and testing.tools.safetynet_compare.CompareRun._ProfileTwoOtherBranchesInThisRepo().

+ Here is the caller graph for this function:

◆ _CheckoutBranch()

testing.tools.safetynet_compare.CompareRun._CheckoutBranch ( self,
branch )
protected

Definition at line 365 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun.git, and testing.tools.safetynet_job.JobRun.git.

Referenced by testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranchInThisRepo(), and testing.tools.safetynet_compare.CompareRun._ProfileTwoOtherBranchesInThisRepo().

+ Here is the caller graph for this function:

◆ _CleanUp()

testing.tools.safetynet_compare.CompareRun._CleanUp ( self,
conclusions )
protected
Removes profile output files for uninteresting cases.

Cases without significant regressions or improvements and considered
uninteresting.

Args:
  conclusions: A ComparisonConclusions.

Definition at line 570 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._CleanUpOutputFile(), QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, and VkSpecParser::Command.args.

Referenced by testing.tools.safetynet_compare.CompareRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _CleanUpOutputFile()

testing.tools.safetynet_compare.CompareRun._CleanUpOutputFile ( self,
run_label,
case_name )
protected
Removes one profile output file.

If the output file does not exist, fails silently.

Args:
  run_label: String to differentiate a version of the code in output
      files from other versions.
  case_name: String identifying test case for which to remove the output
      file.

Definition at line 590 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._GetProfileFilePath().

Referenced by testing.tools.safetynet_compare.CompareRun._CleanUp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _CreateTempRepo()

testing.tools.safetynet_compare.CompareRun._CreateTempRepo ( self,
dir_name,
relative_build_dir,
branch )
protected
Clones a temporary git repository out of the current working dir.

Args:
  dir_name: Name for the temporary repository directory
  relative_build_dir: Path to the build dir in the current working dir to
      clone build args from.
  branch: Branch to checkout in the new repository. None will keep checked
      out the same branch as the local repo.
Returns:
  Path to the build directory of the new repository.

Definition at line 311 of file safetynet_compare.py.

References QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, testing.tools.safetynet_compare.CompareRun.git, and testing.tools.safetynet_job.JobRun.git.

Referenced by testing.tools.safetynet_compare.CompareRun._ProfileSeparateRepo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _DrawConclusions()

testing.tools.safetynet_compare.CompareRun._DrawConclusions ( self,
times_before_branch,
times_after_branch )
protected
Draws conclusions comparing results of test runs in two branches.

Args:
  times_before_branch: A dict mapping each test case name to the
      profiling values for that test case in the branch to be considered
      as the baseline.
  times_after_branch: A dict mapping each test case name to the
      profiling values for that test case in the branch to be considered
      as the new version.

Returns:
  ComparisonConclusions with all test cases processed.

Definition at line 531 of file safetynet_compare.py.

References QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, testing.tools.safetynet_compare.CompareRun.test_cases, testing.tools.test_runner.TestCaseManager.test_cases, and testing.tools.test_runner.TestRunner.test_cases.

Referenced by testing.tools.safetynet_compare.CompareRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _FreezeMeasureScript()

testing.tools.safetynet_compare.CompareRun._FreezeMeasureScript ( self)
protected
Freezes a version of the measuring script.

This is needed to make sure we are comparing the pdfium library changes and
not script changes that may happen between the two branches.

Definition at line 116 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun.__FreezeFile(), and testing.tools.safetynet_compare.CompareRun.safe_script_dir.

Referenced by testing.tools.safetynet_compare.CompareRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetProfileFilePath()

testing.tools.safetynet_compare.CompareRun._GetProfileFilePath ( self,
run_label,
test_case )
protected

◆ _InitPaths()

◆ _MeasureCurrentBranch()

testing.tools.safetynet_compare.CompareRun._MeasureCurrentBranch ( self,
run_label,
build_dir )
protected

Definition at line 395 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._RunAsync(), testing.tools.safetynet_compare.CompareRun._RunSync(), QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, testing.tools.safetynet_compare.CompareRun.test_cases, testing.tools.test_runner.TestCaseManager.test_cases, and testing.tools.test_runner.TestRunner.test_cases.

Referenced by testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranch(), testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranchInThisRepo(), testing.tools.safetynet_compare.CompareRun._ProfileLocalChangesAndCurrentBranchInThisRepo(), testing.tools.safetynet_compare.CompareRun._ProfileSeparateRepo(), and testing.tools.safetynet_compare.CompareRun._ProfileTwoOtherBranchesInThisRepo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _MoveImages()

testing.tools.safetynet_compare.CompareRun._MoveImages ( self,
test_case,
run_label )
protected

◆ _PrintConclusions()

testing.tools.safetynet_compare.CompareRun._PrintConclusions ( self,
conclusions_dict )
protected
Prints the conclusions as the script output.

Depending on the script args, this can output a human or a machine-readable
version of the conclusions.

Args:
  conclusions_dict: Dict to print returned from
      ComparisonConclusions.GetOutputDict().

Definition at line 554 of file safetynet_compare.py.

References QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, and print().

Referenced by testing.tools.safetynet_compare.CompareRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProfileCurrentAndOtherBranch()

testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranch ( self,
other_branch )
protected
Profiles the current branch (with uncommitted changes) and another one.

This is done in new, cloned repositories, therefore it is safer but slower
and requires downloads.

The current branch does not need to descend from other_branch.

Args:
  other_branch: Other branch to profile that is not the current. None will
      compare to the same branch.

Returns:
  A tuple (before, after), where each of before and after is a dict
  mapping a test case name to the profiling values for that test case
  in the given branch. The current branch is considered to be "after" and
  the other branch is considered to be "before".

Definition at line 221 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._BuildCurrentBranch(), testing.tools.safetynet_compare.CompareRun._MeasureCurrentBranch(), testing.tools.safetynet_compare.CompareRun._ProfileSeparateRepo(), testing.tools.safetynet_compare.CompareRun.after_build_dir, and testing.tools.safetynet_compare.CompareRun.before_build_dir.

Referenced by testing.tools.safetynet_compare.CompareRun._ProfileLocalChangesAndCurrentBranch(), and testing.tools.safetynet_compare.CompareRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProfileCurrentAndOtherBranchInThisRepo()

testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranchInThisRepo ( self,
other_branch )
protected
Profiles the current branch (with uncommitted changes) and another one.

This is done in the local repository and changes may not be restored if the
script fails or is interrupted.

The current branch does not need to descend from other_branch.

Args:
  other_branch: Other branch to profile that is not the current.

Returns:
  A tuple (before, after), where each of before and after is a dict
  mapping a test case name to the profiling values for that test case
  in the given branch. The current branch is considered to be "after" and
  the other branch is considered to be "before".

Definition at line 188 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._BuildCurrentBranch(), testing.tools.safetynet_compare.CompareRun._CheckoutBranch(), testing.tools.safetynet_compare.CompareRun._MeasureCurrentBranch(), testing.tools.safetynet_compare.CompareRun._RestoreLocalChanges(), testing.tools.safetynet_compare.CompareRun._StashLocalChanges(), testing.tools.safetynet_compare.CompareRun.after_build_dir, testing.tools.safetynet_compare.CompareRun.before_build_dir, testing.tools.safetynet_compare.CompareRun.git, and testing.tools.safetynet_job.JobRun.git.

Referenced by testing.tools.safetynet_compare.CompareRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProfileLocalChangesAndCurrentBranch()

testing.tools.safetynet_compare.CompareRun._ProfileLocalChangesAndCurrentBranch ( self)
protected
Profiles the current branch with and without uncommitted changes.

This is done in new, cloned repositories, therefore it is safer but slower
and requires downloads.

Returns:
  A tuple (before, after), where each of before and after is a dict
  mapping a test case name to the profiling values for that test case
  using the given version. The current branch without uncommitted changes is
  considered to be "before" and with uncommitted changes is considered to be
  "after".

Definition at line 276 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranch().

Referenced by testing.tools.safetynet_compare.CompareRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProfileLocalChangesAndCurrentBranchInThisRepo()

testing.tools.safetynet_compare.CompareRun._ProfileLocalChangesAndCurrentBranchInThisRepo ( self)
protected
Profiles the current branch with and without uncommitted changes.

This is done in the local repository and changes may not be restored if the
script fails or is interrupted.

Returns:
  A tuple (before, after), where each of before and after is a dict
  mapping a test case name to the profiling values for that test case
  using the given version. The current branch without uncommitted changes is
  considered to be "before" and with uncommitted changes is considered to be
  "after".

Definition at line 247 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._BuildCurrentBranch(), testing.tools.safetynet_compare.CompareRun._MeasureCurrentBranch(), testing.tools.safetynet_compare.CompareRun._RestoreLocalChanges(), testing.tools.safetynet_compare.CompareRun._StashLocalChanges(), testing.tools.safetynet_compare.CompareRun.after_build_dir, QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, and testing.tools.safetynet_compare.CompareRun.before_build_dir.

Referenced by testing.tools.safetynet_compare.CompareRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProfileSeparateRepo()

testing.tools.safetynet_compare.CompareRun._ProfileSeparateRepo ( self,
run_label,
relative_build_dir,
branch )
protected
Profiles a branch in a a temporary git repository.

Args:
  run_label: String to differentiate this version of the code in output
      files from other versions.
  relative_build_dir: Path to the build dir in the current working dir to
      clone build args from.
  branch: Branch to checkout in the new repository. None will
      profile the same branch checked out in the original repo.
Returns:
  A dict mapping each test case name to the profiling values for that
  test case.

Definition at line 291 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._BuildCurrentBranch(), testing.tools.safetynet_compare.CompareRun._CreateTempRepo(), and testing.tools.safetynet_compare.CompareRun._MeasureCurrentBranch().

Referenced by testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranch(), and testing.tools.safetynet_compare.CompareRun._ProfileTwoOtherBranches().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProfileTwoOtherBranches()

testing.tools.safetynet_compare.CompareRun._ProfileTwoOtherBranches ( self,
before_branch,
after_branch )
protected
Profiles two branches that are not the current branch.

This is done in new, cloned repositories, therefore it is safer but slower
and requires downloads.

after_branch does not need to descend from before_branch, they will be
measured the same way

Args:
  before_branch: One branch to profile.
  after_branch: Other branch to profile.

Returns:
  A tuple (before, after), where each of before and after is a dict
  mapping a test case name to the profiling values for that test case
  in the given branch.

Definition at line 164 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._ProfileSeparateRepo(), testing.tools.safetynet_compare.CompareRun.after_build_dir, and testing.tools.safetynet_compare.CompareRun.before_build_dir.

Referenced by testing.tools.safetynet_compare.CompareRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ProfileTwoOtherBranchesInThisRepo()

testing.tools.safetynet_compare.CompareRun._ProfileTwoOtherBranchesInThisRepo ( self,
before_branch,
after_branch )
protected
Profiles two branches that are not the current branch.

This is done in the local repository and changes may not be restored if the
script fails or is interrupted.

after_branch does not need to descend from before_branch, they will be
measured the same way

Args:
  before_branch: One branch to profile.
  after_branch: Other branch to profile.

Returns:
  A tuple (before, after), where each of before and after is a dict
  mapping a test case name to the profiling values for that test case
  in the given branch.

Definition at line 129 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._BuildCurrentBranch(), testing.tools.safetynet_compare.CompareRun._CheckoutBranch(), testing.tools.safetynet_compare.CompareRun._MeasureCurrentBranch(), testing.tools.safetynet_compare.CompareRun._RestoreLocalChanges(), testing.tools.safetynet_compare.CompareRun._StashLocalChanges(), testing.tools.safetynet_compare.CompareRun.after_build_dir, testing.tools.safetynet_compare.CompareRun.before_build_dir, testing.tools.safetynet_compare.CompareRun.git, and testing.tools.safetynet_job.JobRun.git.

Referenced by testing.tools.safetynet_compare.CompareRun.Run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _RestoreLocalChanges()

testing.tools.safetynet_compare.CompareRun._RestoreLocalChanges ( self)
protected

◆ _RunAsync()

testing.tools.safetynet_compare.CompareRun._RunAsync ( self,
run_label,
build_dir )
protected
Profiles the test cases asynchronously.

Uses as many workers as configured by --num-workers.

Args:
  run_label: String to differentiate this version of the code in output
      files from other versions.
  build_dir: String with path to build directory

Returns:
  A dict mapping each test case name to the profiling values for that
  test case.

Definition at line 426 of file safetynet_compare.py.

References QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, get(), testing.tools.safetynet_compare.CompareRun.test_cases, testing.tools.test_runner.TestCaseManager.test_cases, and testing.tools.test_runner.TestRunner.test_cases.

Referenced by testing.tools.safetynet_compare.CompareRun._MeasureCurrentBranch().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _RunSync()

testing.tools.safetynet_compare.CompareRun._RunSync ( self,
run_label,
build_dir )
protected
Profiles the test cases synchronously.

Args:
  run_label: String to differentiate this version of the code in output
      files from other versions.
  build_dir: String with path to build directory

Returns:
  A dict mapping each test case name to the profiling values for that
  test case.

Definition at line 405 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun.RunSingleTestCase(), testing.tools.safetynet_compare.CompareRun.test_cases, testing.tools.test_runner.TestCaseManager.test_cases, and testing.tools.test_runner.TestRunner.test_cases.

Referenced by testing.tools.safetynet_compare.CompareRun._MeasureCurrentBranch().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _StashLocalChanges()

testing.tools.safetynet_compare.CompareRun._StashLocalChanges ( self)
protected

◆ Run()

testing.tools.safetynet_compare.CompareRun.Run ( self)
Runs comparison by checking out branches, building and measuring them.

Returns:
  Exit code for the script.

Definition at line 71 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._CleanUp(), testing.tools.safetynet_compare.CompareRun._DrawConclusions(), testing.tools.safetynet_compare.CompareRun._FreezeMeasureScript(), testing.tools.safetynet_compare.CompareRun._PrintConclusions(), testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranch(), testing.tools.safetynet_compare.CompareRun._ProfileCurrentAndOtherBranchInThisRepo(), testing.tools.safetynet_compare.CompareRun._ProfileLocalChangesAndCurrentBranch(), testing.tools.safetynet_compare.CompareRun._ProfileLocalChangesAndCurrentBranchInThisRepo(), testing.tools.safetynet_compare.CompareRun._ProfileTwoOtherBranches(), testing.tools.safetynet_compare.CompareRun._ProfileTwoOtherBranchesInThisRepo(), testing.tools.safetynet_compare.CompareRun.after_build_dir, QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, and VkSpecParser::Command.args.

+ Here is the call graph for this function:

◆ RunSingleTestCase()

testing.tools.safetynet_compare.CompareRun.RunSingleTestCase ( self,
run_label,
build_dir,
test_case )
Profiles a single test case.

Args:
  run_label: String to differentiate this version of the code in output
      files from other versions.
  build_dir: String with path to build directory
  test_case: Path to the test case.

Returns:
  The measured profiling value for that test case.

Definition at line 465 of file safetynet_compare.py.

References testing.tools.safetynet_compare.CompareRun._GetProfileFilePath(), testing.tools.safetynet_compare.CompareRun._MoveImages(), QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QMetaCallEvent.args(), QMetaCallEvent.args(), QQmlApplication.args(), QQmlApplicationPrivate.args, QSignalSpy.args, QV4::CallContext.args(), QV4::CallData.args, QV4::JSCallArguments.args, QV4::JSCallData.args, QVkCommandBuffer::Command.args, testing.tools.safetynet_compare.CompareRun.args, testing.tools.safetynet_job.JobRun.args, testing.tools.safetynet_measure.PerformanceRun.args, Tracepoint.args, VkSpecParser::Command.args, and testing.tools.safetynet_compare.CompareRun.safe_measure_script_path.

Referenced by testing.tools.safetynet_compare.CompareRun._RunSync().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ after_build_dir

◆ args

◆ before_build_dir

◆ git

◆ safe_measure_script_path

testing.tools.safetynet_compare.CompareRun.safe_measure_script_path
Initial value:
= os.path.abspath(
os.path.join(self.safe_script_dir, 'safetynet_measure.py'))

Definition at line 49 of file safetynet_compare.py.

Referenced by testing.tools.safetynet_compare.CompareRun.RunSingleTestCase().

◆ safe_script_dir

testing.tools.safetynet_compare.CompareRun.safe_script_dir = self.args.build_dir

◆ test_cases


The documentation for this class was generated from the following file: