QmlProfiler: Don't process all events twice when loading traces

At the end of QmlProfilerFileReader::load() we have a perfectly valid
set of types and events which we can just pass on to the model as-is.

Change-Id: I6981663f409c4647f4d5ae8a73b5d14cc701017b
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-08-12 13:39:22 +02:00
parent ce49f92cb7
commit 9ca42dacf3
5 changed files with 23 additions and 37 deletions

View File

@@ -63,6 +63,8 @@ public:
const QVector<QmlEventData> &getEvents() const;
const QVector<QmlEventTypeData> &getEventTypes() const;
void setData(const QVector<QmlEventTypeData> &types, const QVector<QmlEventData> &events);
int count() const;
virtual void clear();
virtual bool isEmpty() const;