forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user