forked from qt-creator/qt-creator
QmlProfiler: manage server-side start tracing message
also QmlProfiler: refactor eventlist state If unexpected data is received, assuming server stopped profiling. Also, introducing a eventlist state instead of relying on signals sent around. This is part of a coming bigger patch where the profiler client is refactored. Change-Id: Ibed9007903956daf03cc0fcb90f77b5ad2d3cf90 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -84,6 +84,9 @@ public slots:
|
||||
void updateSelectedEvent(int eventId) const;
|
||||
void selectBySourceLocation(const QString &filename, int line, int column);
|
||||
|
||||
private slots:
|
||||
void eventListStateChanged();
|
||||
|
||||
protected:
|
||||
void contextMenuEvent(QContextMenuEvent *ev);
|
||||
|
||||
@@ -91,6 +94,7 @@ private:
|
||||
QmlProfilerEventsMainView *m_eventTree;
|
||||
QmlProfilerEventsParentsAndChildrenView *m_eventChildren;
|
||||
QmlProfilerEventsParentsAndChildrenView *m_eventParents;
|
||||
QmlJsDebugClient::QmlProfilerEventList *m_eventStatistics;
|
||||
|
||||
bool m_globalStatsEnabled;
|
||||
};
|
||||
@@ -153,6 +157,7 @@ signals:
|
||||
void showEventInTimeline(int eventId);
|
||||
|
||||
public slots:
|
||||
void eventListStateChanged();
|
||||
void clear();
|
||||
void jumpToItem(const QModelIndex &index);
|
||||
void selectEvent(int eventId);
|
||||
|
||||
Reference in New Issue
Block a user