forked from qt-creator/qt-creator
Qnx: Simplify QmlProfiler setup
Change-Id: Iacd1d483d6e48ff85236e6c93155a5635dd25a22 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user