aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/debugger/qv8profilerservice.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-12-20 16:54:50 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-21 14:42:29 +0100
commit3c211558f6b571555558bd1fc59774e36a6da710 (patch)
treea6b09e799aaa1d10692c39c9bc3128ca58781e25 /src/declarative/debugger/qv8profilerservice.cpp
parent3d8986d7475ef6fdd04ea1286d840d2b570133a0 (diff)
Debugger: Allow transmissions of network packets in one go
We did call a flush() after every single packet, which was slowing down things especially for the QDeclarativeDebugTrace service. Change-Id: Idab074941a22364e154502eb12afa43b4dd33c22 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Diffstat (limited to 'src/declarative/debugger/qv8profilerservice.cpp')
-rw-r--r--src/declarative/debugger/qv8profilerservice.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/debugger/qv8profilerservice.cpp b/src/declarative/debugger/qv8profilerservice.cpp
index f5c980ee78..2c8ed36722 100644
--- a/src/declarative/debugger/qv8profilerservice.cpp
+++ b/src/declarative/debugger/qv8profilerservice.cpp
@@ -241,8 +241,10 @@ void QV8ProfilerServicePrivate::sendMessages()
{
Q_Q(QV8ProfilerService);
+ QList<QByteArray> messages;
for (int i = 0; i < m_data.count(); ++i)
- q->sendMessage(m_data.at(i).toByteArray());
+ messages << m_data.at(i).toByteArray();
+ q->sendMessages(messages);
m_data.clear();
//indicate completion