forked from qt-creator/qt-creator
Tracing: CtfVisualizer: Add menu to restrict view to certain threads
Add a new dropdown menu to select which threads should be displayed. If no threads are selected, all are shown (this is why the word 'restriction' was chosen). At the moment this only affects the timeline view, see the follow up for the statistics view. Change-Id: Ib3b08ea895e852189156e23feb8dea5f843cceb3 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -64,6 +64,11 @@ public:
|
||||
|
||||
int getSelectionId(const std::string &name);
|
||||
|
||||
QList<CtfTimelineModel *> getSortedThreads() const;
|
||||
|
||||
void setThreadRestriction(int tid, bool restrictToThisThread);
|
||||
bool isRestrictedTo(int tid) const;
|
||||
|
||||
signals:
|
||||
void detailsRequested(const QString &title);
|
||||
|
||||
@@ -81,6 +86,7 @@ protected:
|
||||
QHash<qint64, QString> m_processNames;
|
||||
QHash<qint64, QString> m_threadNames;
|
||||
QMap<std::string, int> m_name2selectionId;
|
||||
QHash<qint64, bool> m_threadRestrictions;
|
||||
|
||||
double m_traceBegin = std::numeric_limits<double>::max();
|
||||
double m_traceEnd = std::numeric_limits<double>::min();
|
||||
|
||||
Reference in New Issue
Block a user