AppMan: Inline AppManagerPerfProfilerSupport

Task-number: QTCREATORBUG-29168
Change-Id: I856ee7d514588c524ccec5835bb51508ca3725de
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2024-11-20 19:20:15 +01:00
parent e0743503d1
commit e400195ac0

View File

@@ -212,25 +212,6 @@ public:
}
};
// AppManagerDevicePerfProfilerSupport
class AppManagerPerfProfilerSupport final : public RunWorker
{
public:
explicit AppManagerPerfProfilerSupport(RunControl *runControl)
: RunWorker(runControl)
{
setId("AppManagerPerfProfilerSupport");
runControl->requestPerfChannel();
auto profilee = createInferiorRunner(runControl, NoQmlDebugServices);
addStartDependency(profilee);
addStopDependency(profilee);
}
};
// Factories
class AppManagerRunWorkerFactory final : public RunWorkerFactory
{
public:
@@ -315,7 +296,16 @@ class AppManagerPerfProfilerWorkerFactory final : public RunWorkerFactory
public:
AppManagerPerfProfilerWorkerFactory()
{
setProduct<AppManagerPerfProfilerSupport>();
setProducer([](RunControl *runControl) {
auto worker = new RunWorker(runControl);
worker->setId("AppManagerPerfProfilerSupport");
runControl->requestPerfChannel();
auto profilee = createInferiorRunner(runControl, NoQmlDebugServices);
worker->addStartDependency(profilee);
worker->addStopDependency(profilee);
return worker;
});
addSupportedRunMode("PerfRecorder");
addSupportedRunConfig(Constants::RUNANDDEBUGCONFIGURATION_ID);
}