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:
@@ -217,12 +217,17 @@ void CtfTimelineModel::finalize(double traceBegin, double traceEnd, const QStrin
|
||||
emit contentChanged();
|
||||
}
|
||||
|
||||
int CtfTimelineModel::tid() const
|
||||
{
|
||||
return m_threadId;
|
||||
}
|
||||
|
||||
void CtfTimelineModel::updateName()
|
||||
{
|
||||
if (m_threadName.isEmpty()) {
|
||||
setDisplayName(tr("> Thread %1").arg(m_threadId));
|
||||
setDisplayName(tr("Thread %1").arg(m_threadId));
|
||||
} else {
|
||||
setDisplayName(QString("> %1 (%2)").arg(m_threadName).arg(m_threadId));
|
||||
setDisplayName(QString("%1 (%2)").arg(m_threadName).arg(m_threadId));
|
||||
}
|
||||
QString process = m_processName.isEmpty() ? QString::number(m_processId) :
|
||||
QString("%1 (%2)").arg(m_processName).arg(m_processId);
|
||||
|
||||
Reference in New Issue
Block a user