forked from qt-creator/qt-creator
QmlProfiler: Centralize trace/window/range times
Avoid keeping multiple, potentially diverging copies of the same time information and make sure all the times are consistent with each other. Stating the times as properties allows us to use bindings in more places, too. Change-Id: I9cdd4f561ac22ad795939594ba340b1fbc070e9a Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
This commit is contained in:
@@ -72,7 +72,8 @@ public:
|
||||
const QVector<QmlEventData> &getEvents() const;
|
||||
const QVector<QmlEventTypeData> &getEventTypes() const;
|
||||
const QVector<QmlEventNoteData> &getEventNotes() const;
|
||||
void setData(const QVector<QmlEventTypeData> &types, const QVector<QmlEventData> &events);
|
||||
void setData(qint64 traceStart, qint64 traceEnd, const QVector<QmlEventTypeData> &types,
|
||||
const QVector<QmlEventData> &events);
|
||||
void setNoteData(const QVector<QmlEventNoteData> ¬es);
|
||||
|
||||
int count() const;
|
||||
|
||||
Reference in New Issue
Block a user