diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-10-23 17:15:44 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-10-28 16:50:23 +0000 |
commit | be804f641f53305bb294205896a6cfa0cc080d19 (patch) | |
tree | a7945c12add4d10def1b25d37adddedce54d13b9 /tools/qmlprofiler/qmlprofilerclient.cpp | |
parent | 3a9bfeb5ef6bfc7af65a7579db055ebdbd0d8212 (diff) |
QmlProfiler: Remove binding types
There is only one type of binding left and as all clients check atEnd()
before trying to get the bindingType from the stream we can just remove
all of this.
Change-Id: I4d50ef4a691630b521292cb622ef539b3494a970
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tools/qmlprofiler/qmlprofilerclient.cpp')
-rw-r--r-- | tools/qmlprofiler/qmlprofilerclient.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/tools/qmlprofiler/qmlprofilerclient.cpp b/tools/qmlprofiler/qmlprofilerclient.cpp index bd7b98379f..28cb64066d 100644 --- a/tools/qmlprofiler/qmlprofilerclient.cpp +++ b/tools/qmlprofiler/qmlprofilerclient.cpp @@ -52,7 +52,6 @@ public: QStack<qint64> rangeStartTimes[QQmlProfilerDefinitions::MaximumRangeType]; QStack<QStringList> rangeDatas[QQmlProfilerDefinitions::MaximumRangeType]; QStack<QmlEventLocation> rangeLocations[QQmlProfilerDefinitions::MaximumRangeType]; - QStack<QQmlProfilerDefinitions::BindingType> bindingTypes; int rangeCount[QQmlProfilerDefinitions::MaximumRangeType]; quint64 features; @@ -82,7 +81,6 @@ void QmlProfilerClient::clearData() d->rangeDatas[i].clear(); d->rangeLocations[i].clear(); } - d->bindingTypes.clear(); } void QmlProfilerClient::sendRecordingStatus(bool record) @@ -216,13 +214,6 @@ void QmlProfilerClient::messageReceived(const QByteArray &data) d->inProgressRanges |= (static_cast<qint64>(1) << range); ++d->rangeCount[range]; - // read binding type - if (range == (int)QQmlProfilerDefinitions::Binding) { - int bindingType = (int)QQmlProfilerDefinitions::QmlBinding; - if (!stream.atEnd()) - stream >> bindingType; - d->bindingTypes.push((QQmlProfilerDefinitions::BindingType)bindingType); - } } else if (messageType == QQmlProfilerDefinitions::RangeData) { QString data; stream >> data; @@ -259,12 +250,9 @@ void QmlProfilerClient::messageReceived(const QByteArray &data) d->rangeLocations[range].pop() : QmlEventLocation(); qint64 startTime = d->rangeStartTimes[range].pop(); - QQmlProfilerDefinitions::BindingType bindingType = - QQmlProfilerDefinitions::QmlBinding; - if (range == (int)QQmlProfilerDefinitions::Binding) - bindingType = d->bindingTypes.pop(); emit this->range((QQmlProfilerDefinitions::RangeType)range, - bindingType, startTime, time - startTime, data, location); + QQmlProfilerDefinitions::QmlBinding, startTime, time - startTime, + data, location); if (d->rangeCount[range] == 0) { int count = d->rangeDatas[range].count() + d->rangeStartTimes[range].count() + |