aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlprofiler/qmlprofilerclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmlprofiler/qmlprofilerclient.cpp')
-rw-r--r--tools/qmlprofiler/qmlprofilerclient.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qmlprofiler/qmlprofilerclient.cpp b/tools/qmlprofiler/qmlprofilerclient.cpp
index 9322158280..14fc817807 100644
--- a/tools/qmlprofiler/qmlprofilerclient.cpp
+++ b/tools/qmlprofiler/qmlprofilerclient.cpp
@@ -216,6 +216,12 @@ void QmlProfilerClient::messageReceived(const QByteArray &data)
emit pixmapCache((QQmlProfilerService::PixmapEventType)pixEvTy, time,
QmlEventLocation(pixUrl,0,0), width, height, refcount);
d->maximumTime = qMax(time, d->maximumTime);
+ } else if (messageType == QQmlProfilerService::MemoryAllocation) {
+ int type;
+ qint64 delta;
+ stream >> type >> delta;
+ emit memoryAllocation((QQmlProfilerService::MemoryType)type, time, delta);
+ d->maximumTime = qMax(time, d->maximumTime);
} else {
int range;
stream >> range;