forked from qt-creator/qt-creator
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 <kai.koehne@digia.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user