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()

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

◆ _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 pdfium_test_path.

Referenced by 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 _RunCallgrind(), and _RunPerfStat().

Here is the caller graph for this function:

◆ _RunCallgrind()

testing.tools.safetynet_measure.PerformanceRun._RunCallgrind ( self)
protected
Runs test harness and measures performance with callgrind.

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

Definition at line 70 of file safetynet_measure.py.

References _BuildTestHarnessCommand(), _ExtractIrCount(), QD3D11CommandBuffer::Command.args, QDBusConnectionPrivate::ArgMatchRules.args, QEvdevUtil::ParsedSpecification.args, QGles2CommandBuffer::Command.args, QMakeInternal::QMakeBuiltinInit.args, QQmlApplicationPrivate.args, QSignalSpy.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, args, Tracepoint.args, VkSpecParser::Command.args, and decode.

Referenced by Run().

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

◆ _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 _BuildTestHarnessCommand(), _ExtractIrCount(), and decode.

Referenced by 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 _BuildTestHarnessCommand().

Referenced by Run().

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

◆ Run()

testing.tools.safetynet_measure.PerformanceRun.Run ( self)

Member Data Documentation

◆ args

testing.tools.safetynet_measure.PerformanceRun.args = args

Definition at line 29 of file safetynet_measure.py.

Referenced by _BuildTestHarnessCommand(), _RunCallgrind(), and Run().

◆ pdfium_test_path

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

Definition at line 30 of file safetynet_measure.py.

Referenced by _BuildTestHarnessCommand(), and _CheckTools().


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