From 0b72a9efabeb8892d6e158531195b746de4b84b6 Mon Sep 17 00:00:00 2001 From: Olivier Goffart <olivier.goffart@nokia.com> Date: Mon, 16 Aug 2010 12:17:38 +0200 Subject: [PATCH] QML Debugger: set the new dumpProperty flag to false Dumping property is too slow and introduces noticable leaks In order to work, this optimisation needs f7a501515fcf1dafecb88 from Qt. (else it will not get optimized) --- src/libs/qmljsdebugclient/qdeclarativedebug.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libs/qmljsdebugclient/qdeclarativedebug.cpp b/src/libs/qmljsdebugclient/qdeclarativedebug.cpp index 217d69d35a4..3b36cad363c 100644 --- a/src/libs/qmljsdebugclient/qdeclarativedebug.cpp +++ b/src/libs/qmljsdebugclient/qdeclarativedebug.cpp @@ -539,7 +539,7 @@ QDeclarativeDebugObjectQuery *QDeclarativeEngineDebug::queryObject(const QDeclar QByteArray message; QDataStream ds(&message, QIODevice::WriteOnly); ds << QByteArray("FETCH_OBJECT") << queryId << object.debugId() - << false; + << false << true; d->client->sendMessage(message); } else { query->m_state = QDeclarativeDebugQuery::Error; @@ -562,7 +562,8 @@ QDeclarativeDebugObjectQuery *QDeclarativeEngineDebug::queryObjectRecursive(cons QByteArray message; QDataStream ds(&message, QIODevice::WriteOnly); ds << QByteArray("FETCH_OBJECT") << queryId << object.debugId() - << true; + << true << false; //Note: this is different from the QDeclarativeEngineDebug in Qt, + // dumping all the properties is slow, and make noticable lags d->client->sendMessage(message); } else { query->m_state = QDeclarativeDebugQuery::Error; -- GitLab