QmlProfiler: Support local connections on Qt >= 5.6

This removes the need to receive messages from the application via
stderr. The "Connecting to socket" is still parsed, but only for
diagnostic purposes. If it doesn't arrive, the profiling will still
work.

Change-Id: I022691293da2a1e671ba1263bc76e4044bf1a5b7
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-11-17 16:42:21 +01:00
parent 2217eef3a3
commit 7b4e253a1e
11 changed files with 94 additions and 27 deletions

View File

@@ -52,6 +52,7 @@ public:
void registerProfilerStateManager(QmlProfilerStateManager *profilerState);
void setTcpConnection(QString host, quint64 port);
void setLocalSocket(QString file);
void clearBufferedData();
void discardPendingData();
@@ -65,7 +66,8 @@ signals:
void connectionClosed();
public slots:
void connectClient(quint16 port);
void connectTcpClient(quint16 port);
void connectLocalClient(const QString &file);
void disconnectClient();
private slots:
@@ -89,7 +91,7 @@ private:
void connectToClient();
void enableServices();
void createConnection();
void connectClientSignals();
void disconnectClientSignals();