aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/memoryusagemodel.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-03-28 08:57:46 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-04-17 12:17:23 +0000
commit7ca958fa85a9855ae658eaa3fa38e60b1279fb04 (patch)
tree3b452af3c71f209e5b7dede76c067a1e87cef926 /src/plugins/qmlprofiler/memoryusagemodel.cpp
parent507c2d6b5b36fae467f7a1d71ac80c9086a5f55b (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 <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/memoryusagemodel.cpp')
-rw-r--r--src/plugins/qmlprofiler/memoryusagemodel.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/qmlprofiler/memoryusagemodel.cpp b/src/plugins/qmlprofiler/memoryusagemodel.cpp
index ee933c03e10..bf2cc08d2c0 100644
--- a/src/plugins/qmlprofiler/memoryusagemodel.cpp
+++ b/src/plugins/qmlprofiler/memoryusagemodel.cpp
@@ -234,12 +234,12 @@ void MemoryUsageModel::loadEvent(const QmlEvent &event, const QmlEventType &type
void MemoryUsageModel::finalize()
{
- if (m_currentJSHeapIndex != -1)
- insertEnd(m_currentJSHeapIndex, modelManager()->traceTime()->endTime() -
- startTime(m_currentJSHeapIndex));
+ if (m_currentJSHeapIndex != -1) {
+ insertEnd(m_currentJSHeapIndex,
+ modelManager()->traceEnd() - startTime(m_currentJSHeapIndex));
+ }
if (m_currentUsageIndex != -1)
- insertEnd(m_currentUsageIndex, modelManager()->traceTime()->endTime() -
- startTime(m_currentUsageIndex));
+ insertEnd(m_currentUsageIndex, modelManager()->traceEnd() - startTime(m_currentUsageIndex));
computeNesting();