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_measure.PerformanceRun Class Reference
+ Collaboration diagram for testing.tools.safetynet_measure.PerformanceRun:

Public Member Functions

 __init__ (self, args)
 
 Run (self)
 

Public Attributes

 args = args
 
 pdfium_test_path = os.path.join(self.args.build_dir, PDFIUM_TEST)
 

Protected Member Functions

 _CheckTools (self)
 
 _RunCallgrind (self)
 
 _RunPerfStat (self)
 
 _RunWithoutProfiler (self)
 
 _BuildTestHarnessCommand (self)
 
 _ExtractIrCount (self, regex, output)
 

Detailed Description

A single measurement of a test case.

Definition at line 25 of file safetynet_measure.py.

Constructor & Destructor Documentation

◆ __init__()

testing.tools.safetynet_measure.PerformanceRun.__init__ ( self,
args )

Definition at line 28 of file safetynet_measure.py.

Member Function Documentation

◆ _BuildTestHarnessCommand()

◆ _CheckTools()

testing.tools.safetynet_measure.PerformanceRun._CheckTools ( self)
protected
Returns whether the tool file paths are sane.

Definition at line 32 of file safetynet_measure.py.

References testing.tools.safetynet_measure.PerformanceRun.pdfium_test_path, and testing.tools.test_runner._PerProcessState.pdfium_test_path.

Referenced by testing.tools.safetynet_measure.PerformanceRun.Run().

+ Here is the caller graph for this function:

◆ _ExtractIrCount()

testing.tools.safetynet_measure.PerformanceRun._ExtractIrCount ( self,
regex,
output )
protected
Extracts a number from the output with a regex.

Definition at line 137 of file safetynet_measure.py.

Referenced by testing.tools.safetynet_measure.PerformanceRun._RunCallgrind(), and testing.tools.safetynet_measure.PerformanceRun._RunPerfStat().

+ Here is the caller graph for this function:

◆ _RunCallgrind()

testing.tools.safetynet_measure.PerformanceRun._RunCallgrind ( self)
protected

◆ _RunPerfStat()

testing.tools.safetynet_measure.PerformanceRun._RunPerfStat ( self)
protected
Runs test harness and measures performance with perf stat.

Returns:
  int with the result of the measurement, in instructions or time.

Definition at line 93 of file safetynet_measure.py.

References testing.tools.safetynet_measure.PerformanceRun._BuildTestHarnessCommand(), testing.tools.safetynet_measure.PerformanceRun._ExtractIrCount(), and decode.

Referenced by testing.tools.safetynet_measure.PerformanceRun.Run().

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

◆ _RunWithoutProfiler()

testing.tools.safetynet_measure.PerformanceRun._RunWithoutProfiler ( self)
protected
Runs test harness and measures performance without a profiler.

Returns:
  int with the result of the measurement, in instructions or time. In this
  case, always return 1 since no profiler is being used.

Definition at line 110 of file safetynet_measure.py.

References testing.tools.safetynet_measure.PerformanceRun._BuildTestHarnessCommand().

Referenced by testing.tools.safetynet_measure.PerformanceRun.Run().

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

◆ Run()

Member Data Documentation

◆ args

◆ pdfium_test_path

testing.tools.safetynet_measure.PerformanceRun.pdfium_test_path = os.path.join(self.args.build_dir, PDFIUM_TEST)

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