forked from qt-creator/qt-creator
Tracing: Generalize event filtering
This allows us to not only filter by ranges, but potentially also by other criteria. Change-Id: I7349ceeabbb2781473a3a4c803dab1006b7b8e50 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -163,9 +163,10 @@ void FlameGraphModel::restrictToFeatures(quint64 visibleFeatures)
|
||||
clear();
|
||||
|
||||
QFutureInterface<void> future;
|
||||
m_modelManager->replayQmlEvents(m_modelManager->traceStart(), m_modelManager->traceEnd(),
|
||||
std::bind(&FlameGraphModel::loadEvent, this,
|
||||
std::placeholders::_1, std::placeholders::_2),
|
||||
const auto filter = m_modelManager->rangeFilter(m_modelManager->traceStart(),
|
||||
m_modelManager->traceEnd());
|
||||
m_modelManager->replayQmlEvents(filter(std::bind(&FlameGraphModel::loadEvent, this,
|
||||
std::placeholders::_1, std::placeholders::_2)),
|
||||
std::bind(&FlameGraphModel::beginResetModel, this),
|
||||
std::bind(&FlameGraphModel::finalize, this),
|
||||
[this](const QString &message) {
|
||||
|
||||
Reference in New Issue
Block a user