Qnx: Simplify QmlProfiler setup

Change-Id: Iacd1d483d6e48ff85236e6c93155a5635dd25a22
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2024-10-01 16:43:35 +02:00
parent d0c8dea5c7
commit ca59bf95da

View File

@@ -27,7 +27,7 @@ public:
setId("QnxQmlProfilerSupport"); setId("QnxQmlProfilerSupport");
appendMessage(Tr::tr("Preparing remote side..."), LogMessageFormat); appendMessage(Tr::tr("Preparing remote side..."), LogMessageFormat);
runControl->enablePortsGatherer(); runControl->requestQmlChannel();
auto slog2InfoRunner = new Slog2InfoRunner(runControl); auto slog2InfoRunner = new Slog2InfoRunner(runControl);
addStartDependency(slog2InfoRunner); addStartDependency(slog2InfoRunner);
@@ -36,12 +36,9 @@ public:
profiler->addStartDependency(this); profiler->addStartDependency(this);
addStopDependency(profiler); addStopDependency(profiler);
setStartModifier([this, runControl, profiler] { setStartModifier([this] {
const QUrl serverUrl = runControl->findEndPoint();
profiler->recordData("QmlServerUrl", serverUrl);
CommandLine cmd = commandLine(); CommandLine cmd = commandLine();
cmd.addArg(QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlProfilerServices, serverUrl)); cmd.addArg(QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlProfilerServices, qmlChannel()));
setCommandLine(cmd); setCommandLine(cmd);
}); });
} }