diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-07-06 11:34:15 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-07-06 10:26:12 +0000 |
commit | d12c8806ac8f02ad7f9ed741e90fd1c52c5dd3b9 (patch) | |
tree | 915cad32f7239349335eb68d28927e91f6e23983 /src/plugins/qmlprofiler/qmlprofilernotesmodel.h | |
parent | 5df7b1272d490d8f0cd3ff19f2fc1b6929f22514 (diff) | |
download | qt-creator-d12c8806ac8f02ad7f9ed741e90fd1c52c5dd3b9.tar.gz |
QmlProfiler: Add extra metadata to notes
This way we can improve the heuristic used for mapping notes to
timeline events, by taking the row into account. Also, by marking
notes as loaded when loading them we avoid accidentally dropping
them by restricting to ranges.
Change-Id: I031389880571805788c910728ee89333a5cd4727
Task-number: QTCREATORBUG-16542
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilernotesmodel.h')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilernotesmodel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilernotesmodel.h b/src/plugins/qmlprofiler/qmlprofilernotesmodel.h index e6cb228744..e2b683fd79 100644 --- a/src/plugins/qmlprofiler/qmlprofilernotesmodel.h +++ b/src/plugins/qmlprofiler/qmlprofilernotesmodel.h @@ -38,7 +38,7 @@ public: QmlProfilerNotesModel(QObject *parent); void loadData(); - void saveData(qint64 startTime, qint64 endTime); + void saveData(); const QVector<QmlNote> ¬es() const; void setNotes(const QVector<QmlNote> ¬es); @@ -47,6 +47,7 @@ public: protected: QVector<QmlNote> m_notes; - int addQmlNote(int typeId, qint64 startTime, qint64 duration, const QString &text); + int addQmlNote(int typeId, int collapsedRow, qint64 startTime, qint64 duration, + const QString &text); }; } // namespace QmlProfiler |