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>
This commit is contained in:
Ulf Hermann
2017-03-24 10:50:51 +01:00
parent 5ac136204e
commit 551efd9199

View File

@@ -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)