diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-03-24 10:50:51 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-03-24 14:25:06 +0000 |
commit | 551efd91990e07902e5324f720cf5585865c323d (patch) | |
tree | 2f5848986af9f473339026e6eb0924520d321afe /src/plugins/qmlprofiler | |
parent | 5ac136204ecfad6a93a887af29534698f7f029c7 (diff) |
QmlProfiler: Use QList for QmlRange container when loading .qtd
As we are using this as a queue, with many calls to takeFirst(), a
QVector is prohibitively expensive here.
Change-Id: I151452ae1299ab520a3aceae7ff3da0e29fe9bf9
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertracefile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp index a821b43eb0..b84de415ae 100644 --- a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp @@ -430,7 +430,7 @@ private: QmlEvent end; }; - QVector<QmlRange> ranges; + QList<QmlRange> ranges; // We are going to do a lot of takeFirst() on this. }; void EventList::addEvent(const QmlEvent &event) |