summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprofiler/qmlprofilertracefile.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-08-12 13:39:22 +0200
committerUlf Hermann <ulf.hermann@digia.com>2014-09-12 15:44:28 +0200
commit9ca42dacf3acd5a1c2ef5573c55d847ee9fccdf0 (patch)
treef548238d954d28d1cc18041485a53cdcebf3a6d2 /src/plugins/qmlprofiler/qmlprofilertracefile.h
parentce49f92cb757c248281c797025cef8a7cdc007f3 (diff)
downloadqt-creator-9ca42dacf3acd5a1c2ef5573c55d847ee9fccdf0.tar.gz
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>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertracefile.h')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilertracefile.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertracefile.h b/src/plugins/qmlprofiler/qmlprofilertracefile.h
index 676819a99f..fa40d9bae6 100644
--- a/src/plugins/qmlprofiler/qmlprofilertracefile.h
+++ b/src/plugins/qmlprofiler/qmlprofilertracefile.h
@@ -55,6 +55,7 @@ public:
explicit QmlProfilerFileReader(QObject *parent = 0);
void setV8DataModel(QV8ProfilerDataModel *dataModel);
+ void setQmlDataModel(QmlProfilerDataModel *dataModel);
bool load(QIODevice *device);
@@ -62,20 +63,14 @@ signals:
void traceStartTime(qint64 traceStartTime);
void traceEndTime(qint64 traceStartTime);
- void rangedEvent(QmlDebug::Message message, QmlDebug::RangeType rangeType, int detailType,
- qint64 startTime, qint64 length, const QString &data,
- const QmlDebug::QmlEventLocation &location,
- qint64 param1, qint64 param2, qint64 param3, qint64 param4, qint64 param5);
void error(const QString &error);
private:
void loadEventData(QXmlStreamReader &reader);
void loadProfilerDataModel(QXmlStreamReader &reader);
- void processQmlEvents();
-
-
QV8ProfilerDataModel *m_v8Model;
+ QmlProfilerDataModel *m_qmlModel;
QVector<QmlProfilerDataModel::QmlEventTypeData> m_qmlEvents;
QVector<QmlProfilerDataModel::QmlEventData> m_ranges;
};