diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-04-29 14:43:32 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-05-23 12:31:51 +0000 |
commit | 914e1e1fe1a9c2ec42f011b56fb3d8f37163d7df (patch) | |
tree | 078453955a738a21a9943df2bea1b5620a55ee9f /src/plugins/qmlprofiler/qmlprofilertracefile.h | |
parent | 4a1e5a637a08299bd94428fba233d985a63f4675 (diff) |
QmlProfiler: Use data replay feature for saving traces
This removes the last access to the master event list, which allows
us to also remove the accessor function.
Change-Id: I0e70c2eb23d2b11aa8b131c03eb3adfad1a9b9e7
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilertracefile.h')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilertracefile.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilertracefile.h b/src/plugins/qmlprofiler/qmlprofilertracefile.h index 9ebb5c530ec..a1c56b09092 100644 --- a/src/plugins/qmlprofiler/qmlprofilertracefile.h +++ b/src/plugins/qmlprofiler/qmlprofilertracefile.h @@ -88,7 +88,7 @@ public: explicit QmlProfilerFileWriter(QObject *parent = 0); void setTraceTime(qint64 startTime, qint64 endTime, qint64 measturedTime); - void setData(const QVector<QmlEventType> &types, const QVector<QmlEvent> &events); + void setData(const QmlProfilerDataModel *model); void setNotes(const QVector<QmlNote> ¬es); void setFuture(QFutureInterface<void> *future); @@ -101,8 +101,7 @@ private: qint64 m_startTime, m_endTime, m_measuredTime; QFutureInterface<void> *m_future; - QVector<QmlEventType> m_eventTypes; - QVector<QmlEvent> m_events; + const QmlProfilerDataModel *m_model; QVector<QmlNote> m_notes; int m_newProgressValue; }; |