forked from qt-creator/qt-creator
AppMan: Inline AppManagerPerfProfilerSupport
Task-number: QTCREATORBUG-29168 Change-Id: I856ee7d514588c524ccec5835bb51508ca3725de Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user