diff options
author | Ulf Hermann <[email protected]> | 2018-05-07 17:08:12 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2018-05-08 14:13:43 +0000 |
commit | 95d7be1b28a280ef2bd0c3ecabd8ed2e122d6e8a (patch) | |
tree | f7e7fd60a7da6e6f86cf312ae350ff63b4ad9d4a /src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | |
parent | 7e9b6f62c698c8d27887db5b2bca3235aec288fd (diff) |
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 <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index de1c3b9ea2e..81e1168f25d 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -102,9 +102,10 @@ void QmlProfilerStatisticsModel::restrictToFeatures(quint64 features) clear(); QFutureInterface<void> future; - m_modelManager->replayQmlEvents(m_modelManager->traceStart(), m_modelManager->traceEnd(), - std::bind(&QmlProfilerStatisticsModel::loadEvent, this, - std::placeholders::_1, std::placeholders::_2), + auto filter = m_modelManager->rangeFilter(m_modelManager->traceStart(), + m_modelManager->traceEnd()); + m_modelManager->replayQmlEvents(filter(std::bind(&QmlProfilerStatisticsModel::loadEvent, this, + std::placeholders::_1, std::placeholders::_2)), std::bind(&QmlProfilerStatisticsModel::beginResetModel, this), [this]() { finalize(); |