Boot2Qt: Dismantle QdbDevicePerfProfilerSupport

Task-number: QTCREATORBUG-29168
Change-Id: I3a48576599df40af324db1796c3a754b6859e2b0
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2024-11-18 14:48:15 +01:00
parent 45a5ab8552
commit c6ff6d8a8f

View File

@@ -184,25 +184,6 @@ QdbDeviceQmlToolingSupport::QdbDeviceQmlToolingSupport(RunControl *runControl)
addStopDependency(worker); addStopDependency(worker);
} }
// QdbDevicePerfProfilerSupport
class QdbDevicePerfProfilerSupport final : public RunWorker
{
public:
explicit QdbDevicePerfProfilerSupport(RunControl *runControl);
};
QdbDevicePerfProfilerSupport::QdbDevicePerfProfilerSupport(RunControl *runControl)
: RunWorker(runControl)
{
setId("QdbDevicePerfProfilerSupport");
runControl->requestPerfChannel();
auto profilee = new QdbDeviceInferiorRunner(runControl, NoQmlDebugServices);
addStartDependency(profilee);
addStopDependency(profilee);
}
// Factories // Factories
class QdbRunWorkerFactory final : public RunWorkerFactory class QdbRunWorkerFactory final : public RunWorkerFactory
@@ -261,7 +242,11 @@ class QdbPerfProfilerWorkerFactory final : public RunWorkerFactory
public: public:
QdbPerfProfilerWorkerFactory() QdbPerfProfilerWorkerFactory()
{ {
setProduct<QdbDevicePerfProfilerSupport>(); setProducer([](RunControl *runControl) {
runControl->requestPerfChannel();
auto worker = new QdbDeviceInferiorRunner(runControl, NoQmlDebugServices);
return worker;
});
addSupportedRunMode("PerfRecorder"); addSupportedRunMode("PerfRecorder");
addSupportedDeviceType(Qdb::Constants::QdbLinuxOsType); addSupportedDeviceType(Qdb::Constants::QdbLinuxOsType);
addSupportedRunConfig(Constants::QdbRunConfigurationId); addSupportedRunConfig(Constants::QdbRunConfigurationId);