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, 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_measure.PerformanceRun.pdfium_test_path, and testing.tools.test_runner._PerProcessState.pdfium_test_path.
Referenced by testing.tools.safetynet_measure.PerformanceRun._RunCallgrind(), testing.tools.safetynet_measure.PerformanceRun._RunPerfStat(), and testing.tools.safetynet_measure.PerformanceRun._RunWithoutProfiler().
|
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().
|
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().
|
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 testing.tools.safetynet_measure.PerformanceRun._BuildTestHarnessCommand(), testing.tools.safetynet_measure.PerformanceRun._ExtractIrCount(), 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 decode.
Referenced by testing.tools.safetynet_measure.PerformanceRun.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 testing.tools.safetynet_measure.PerformanceRun._BuildTestHarnessCommand(), testing.tools.safetynet_measure.PerformanceRun._ExtractIrCount(), and decode.
Referenced by testing.tools.safetynet_measure.PerformanceRun.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 testing.tools.safetynet_measure.PerformanceRun._BuildTestHarnessCommand().
Referenced by testing.tools.safetynet_measure.PerformanceRun.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 testing.tools.safetynet_measure.PerformanceRun._CheckTools(), testing.tools.safetynet_measure.PerformanceRun._RunCallgrind(), testing.tools.safetynet_measure.PerformanceRun._RunPerfStat(), testing.tools.safetynet_measure.PerformanceRun._RunWithoutProfiler(), 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().
testing.tools.safetynet_measure.PerformanceRun.args = args |
Definition at line 29 of file safetynet_measure.py.
Referenced by testing.tools.safetynet_measure.PerformanceRun._BuildTestHarnessCommand(), testing.tools.safetynet_compare.CompareRun._CleanUp(), testing.tools.safetynet_compare.CompareRun._CreateTempRepo(), testing.tools.safetynet_compare.CompareRun._DrawConclusions(), testing.tools.safetynet_compare.CompareRun._GetProfileFilePath(), testing.tools.safetynet_job.JobRun._IncrementalRun(), testing.tools.safetynet_compare.CompareRun._InitPaths(), testing.tools.safetynet_compare.CompareRun._MeasureCurrentBranch(), testing.tools.safetynet_compare.CompareRun._MoveImages(), testing.tools.safetynet_compare.CompareRun._PrintConclusions(), testing.tools.safetynet_compare.CompareRun._ProfileLocalChangesAndCurrentBranchInThisRepo(), testing.tools.safetynet_compare.CompareRun._RunAsync(), testing.tools.safetynet_measure.PerformanceRun._RunCallgrind(), testing.tools.safetynet_job.JobRun._WriteCheckpoint(), testing.tools.safetynet_compare.CompareRun.Run(), testing.tools.safetynet_job.JobRun.Run(), testing.tools.safetynet_measure.PerformanceRun.Run(), and testing.tools.safetynet_compare.CompareRun.RunSingleTestCase().
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 testing.tools.safetynet_measure.PerformanceRun._BuildTestHarnessCommand(), and testing.tools.safetynet_measure.PerformanceRun._CheckTools().