![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
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) |
A single measurement of a test case.
Definition at line 25 of file safetynet_measure.py.
testing.tools.safetynet_measure.PerformanceRun.__init__ | ( | self, | |
args ) |
Definition at line 28 of file safetynet_measure.py.
|
protected |
Builds command to run the test harness.
Definition at line 123 of file safetynet_measure.py.
References 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 pdfium_test_path.
Referenced by _RunCallgrind(), _RunPerfStat(), and _RunWithoutProfiler().
|
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().
|
protected |
Extracts a number from the output with a regex.
Definition at line 137 of file safetynet_measure.py.
Referenced by _RunCallgrind(), and _RunPerfStat().
|
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().
|
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().
|
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().
testing.tools.safetynet_measure.PerformanceRun.Run | ( | self | ) |
Runs test harness and measures performance with the given profiler. Returns: Exit code for the script.
Definition at line 45 of file safetynet_measure.py.
References _CheckTools(), _RunCallgrind(), _RunPerfStat(), _RunWithoutProfiler(), 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 print().
testing.tools.safetynet_measure.PerformanceRun.args = args |
Definition at line 29 of file safetynet_measure.py.
Referenced by _BuildTestHarnessCommand(), _RunCallgrind(), and Run().
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().