diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-06-16 13:33:33 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@digia.com> | 2014-08-12 10:16:40 +0200 |
commit | 74f483f23140aaf77ab062bd53478cbb949fd2e2 (patch) | |
tree | 4f4ac704c96ec506de8c33829c534bede2a5ddbc /tools/qmlprofiler/qmlprofilerclient.cpp | |
parent | 99d0921e2d2a20b956cab172d472f7c369c05008 (diff) |
Write memory events into tracefiles generated by qmlprofiler
Change-Id: Ic01505194f29967ed1aad16fe36e14dc5532ae25
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tools/qmlprofiler/qmlprofilerclient.cpp')
-rw-r--r-- | tools/qmlprofiler/qmlprofilerclient.cpp | 6 |
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; |