QmlProfiler: Send a flush interval to Qt when starting profiling

From 5.6 on this will make Qt stream events instead of sending them all
in the end, reducing the time it takes to load data.

Change-Id: I23b1fced4a527b58ee3312fc5c48b23d3dc6260e
Task-number: QTCREATORBUG-11823
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-07-28 13:19:39 +02:00
parent cd5f9f6ff8
commit d067986b55

View File

@@ -76,7 +76,7 @@ void QmlProfilerTraceClientPrivate::sendRecordingStatus(int engineId)
QDataStream stream(&ba, QIODevice::WriteOnly); QDataStream stream(&ba, QIODevice::WriteOnly);
stream << recording << engineId; // engineId -1 is OK. It means "all of them" stream << recording << engineId; // engineId -1 is OK. It means "all of them"
if (recording) if (recording)
stream << requestedFeatures; stream << requestedFeatures << quint32(1000); // flush interval. Fixed to 1000ms for now
q->sendMessage(ba); q->sendMessage(ba);
} }