From ef51b12f993b88c1ba57f7921e74c36c8a699b3e Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 8 Jul 2014 12:33:46 +0200 Subject: Replace lastTimeMark with traceEndTime for end time of memory profiler lastTimeMark is just the end of the last recorded event. The memory will still be allocated after that. Change-Id: Ica12993d7b1572c145bba6373461240a5e846fa9 Reviewed-by: Kai Koehne --- plugins/qmlprofilerextension/memoryusagemodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/qmlprofilerextension/memoryusagemodel.cpp b/plugins/qmlprofilerextension/memoryusagemodel.cpp index 8cf9a42158..8bd6ff2741 100644 --- a/plugins/qmlprofilerextension/memoryusagemodel.cpp +++ b/plugins/qmlprofilerextension/memoryusagemodel.cpp @@ -269,10 +269,10 @@ void MemoryUsageModel::loadData() } if (currentJSHeapIndex != -1) - d->insertEnd(currentJSHeapIndex, simpleModel->lastTimeMark() - + d->insertEnd(currentJSHeapIndex, traceEndTime() - d->range(currentJSHeapIndex).start - 1); if (currentUsageIndex != -1) - d->insertEnd(currentUsageIndex, simpleModel->lastTimeMark() - + d->insertEnd(currentUsageIndex, traceEndTime() - d->range(currentUsageIndex).start - 1); -- cgit v1.2.1