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");
|
||||
appendMessage(Tr::tr("Preparing remote side..."), LogMessageFormat);
|
||||
|
||||
runControl->enablePortsGatherer();
|
||||
runControl->requestQmlChannel();
|
||||
|
||||
auto slog2InfoRunner = new Slog2InfoRunner(runControl);
|
||||
addStartDependency(slog2InfoRunner);
|
||||
@@ -36,12 +36,9 @@ public:
|
||||
profiler->addStartDependency(this);
|
||||
addStopDependency(profiler);
|
||||
|
||||
setStartModifier([this, runControl, profiler] {
|
||||
const QUrl serverUrl = runControl->findEndPoint();
|
||||
profiler->recordData("QmlServerUrl", serverUrl);
|
||||
|
||||
setStartModifier([this] {
|
||||
CommandLine cmd = commandLine();
|
||||
cmd.addArg(QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlProfilerServices, serverUrl));
|
||||
cmd.addArg(QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlProfilerServices, qmlChannel()));
|
||||
setCommandLine(cmd);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user