QmlProfiler: Support profiling applications on embedded Linux

Allow on-device profiling e.g. on Meego/Harmattan.

Change-Id: I066b71078e1dab1b1369ff7275f72e88045d1bab
Reviewed-on: http://codereview.qt.nokia.com/784
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Kai Koehne
2011-06-27 17:18:55 +02:00
committed by Christian Kandeler
parent 2707f7a74b
commit 949ffeb1b4
12 changed files with 280 additions and 7 deletions

View File

@@ -181,7 +181,7 @@ IAnalyzerEngine *QmlProfilerTool::createEngine(const AnalyzerStartParameters &sp
connect(d->m_project, SIGNAL(fileListChanged()), this, SLOT(updateProjectFileList()));
}
connect(engine, SIGNAL(processRunning()), this, SLOT(connectClient()));
connect(engine, SIGNAL(processRunning(int)), this, SLOT(connectClient(int)));
connect(engine, SIGNAL(finished()), this, SLOT(disconnectClient()));
connect(engine, SIGNAL(stopRecording()), this, SLOT(stopRecording()));
connect(d->m_traceWindow, SIGNAL(viewUpdated()), engine, SLOT(dataReceived()));
@@ -320,7 +320,7 @@ QWidget *QmlProfilerTool::createControlWidget()
return toolbarWidget;
}
void QmlProfilerTool::connectClient()
void QmlProfilerTool::connectClient(int port)
{
QTC_ASSERT(!d->m_client, return;)
d->m_client = new QDeclarativeDebugConnection;
@@ -328,6 +328,7 @@ void QmlProfilerTool::connectClient()
connect(d->m_client, SIGNAL(stateChanged(QAbstractSocket::SocketState)),
this, SLOT(connectionStateChanged()));
d->m_connectionTimer.start();
d->m_tcpPort = port;
}
void QmlProfilerTool::connectToClient()
@@ -440,7 +441,7 @@ void QmlProfilerTool::attach()
d->m_tcpPort = dialog.port();
d->m_tcpHost = dialog.address();
connectClient();
connectClient(d->m_tcpPort);
AnalyzerManager::instance()->showMode();
//AnalyzerManager::instance()->popupOutputPane();
} else {