aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/debugger
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2016-03-02 16:26:36 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2016-03-11 09:18:54 +0000
commitd87572053a15474a577dcf5714187fbdb4cfec0d (patch)
tree7bfdaa1bc40d2c201881db44b0d9a68888f4f52c /src/qml/debugger
parentc44413067da24f5d768f3fde25248cdba5a566bd (diff)
QmlProfiler: Send events in smaller batches
This enables more parallel data processing and limits the memory usage. Benchmarks with the "planets" example from canvas3d show that this change reduces the time between the profiling being stopped and the last events arriving in the profiling client by about 50%. Change-Id: Iea16f9e2ae3adf584ec4a3c7fc766eaa21740f98 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/debugger')
-rw-r--r--src/qml/debugger/qqmlabstractprofileradapter_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/debugger/qqmlabstractprofileradapter_p.h b/src/qml/debugger/qqmlabstractprofileradapter_p.h
index bd93da324d..1104608055 100644
--- a/src/qml/debugger/qqmlabstractprofileradapter_p.h
+++ b/src/qml/debugger/qqmlabstractprofileradapter_p.h
@@ -64,6 +64,8 @@ class Q_QML_PRIVATE_EXPORT QQmlAbstractProfilerAdapter : public QObject, public
Q_OBJECT
public:
+ static const int s_numMessagesPerBatch = 1000;
+
QQmlAbstractProfilerAdapter(QObject *parent = 0) :
QObject(parent), service(0), waiting(true), featuresEnabled(0) {}
virtual ~QQmlAbstractProfilerAdapter() {}