diff options
author | Ulf Hermann <[email protected]> | 2018-03-28 08:57:46 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2018-04-17 12:17:23 +0000 |
commit | 7ca958fa85a9855ae658eaa3fa38e60b1279fb04 (patch) | |
tree | 3b452af3c71f209e5b7dede76c067a1e87cef926 /src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | |
parent | 507c2d6b5b36fae467f7a1d71ac80c9086a5f55b (diff) |
QmlProfiler: Integrate TraceTime into ModelManager
We never use it independently and only a subset of its interface needs
to be public.
Change-Id: I97bbc638270bcbb8fb1a4097fcfeacf37e96c048
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index 430493192be..5cdfa0d9108 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -104,11 +104,10 @@ void QmlProfilerStatisticsModel::restrictToFeatures(quint64 features) clear(); beginResetModel(); - if (!m_modelManager->replayEvents(m_modelManager->traceTime()->startTime(), - m_modelManager->traceTime()->endTime(), - std::bind(&QmlProfilerStatisticsModel::loadEvent, - this, std::placeholders::_1, - std::placeholders::_2))) { + if (!m_modelManager->replayEvents(m_modelManager->traceStart(), m_modelManager->traceEnd(), + std::bind(&QmlProfilerStatisticsModel::loadEvent, + this, std::placeholders::_1, + std::placeholders::_2))) { endResetModel(); emit m_modelManager->error(tr("Could not re-read events from temporary trace file.")); clear(); |