diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-04-28 15:40:02 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-05-06 10:36:40 +0000 |
commit | 215c0533d20950d412e304dc41bc0bc93afac84f (patch) | |
tree | d6ae94409a4d407b3d2bbb15097f8cd14c093fc3 /src/plugins/qmlprofiler/memoryusagemodel.cpp | |
parent | a53780924de223f56c5294d5ab9f501a602585bc (diff) |
QmlProfiler: Rename QmlEvent::startTime to "timestamp"
As many events are instantaneous and we're going to drop the duration
property soon, this is more fitting.
Change-Id: I6e13dd076a5b9df16aed44bf9f631ea5760e9cbf
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/memoryusagemodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/memoryusagemodel.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/qmlprofiler/memoryusagemodel.cpp b/src/plugins/qmlprofiler/memoryusagemodel.cpp index 1b988c96b57..013a4ff6890 100644 --- a/src/plugins/qmlprofiler/memoryusagemodel.cpp +++ b/src/plugins/qmlprofiler/memoryusagemodel.cpp @@ -162,12 +162,12 @@ void MemoryUsageModel::loadData() const QVector<QmlEventType> &types = simpleModel->eventTypes(); foreach (const QmlEvent &event, simpleModel->events()) { const QmlEventType &type = types[event.typeIndex()]; - while (!rangeStack.empty() && rangeStack.top().endTime < event.startTime()) + while (!rangeStack.empty() && rangeStack.top().endTime < event.timestamp()) rangeStack.pop(); if (!accepted(type)) { if (type.rangeType != MaximumRangeType) { - rangeStack.push(RangeStackFrame(event.typeIndex(), event.startTime(), - event.startTime() + event.duration())); + rangeStack.push(RangeStackFrame(event.typeIndex(), event.timestamp(), + event.timestamp() + event.duration())); } continue; } @@ -187,9 +187,9 @@ void MemoryUsageModel::loadData() if (currentUsageIndex != -1) { insertEnd(currentUsageIndex, - event.startTime() - startTime(currentUsageIndex) - 1); + event.timestamp() - startTime(currentUsageIndex) - 1); } - currentUsageIndex = insertStart(event.startTime(), SmallItem); + currentUsageIndex = insertStart(event.timestamp(), SmallItem); m_data.insert(currentUsageIndex, allocation); } } @@ -212,8 +212,8 @@ void MemoryUsageModel::loadData() m_maxSize = currentSize; if (currentJSHeapIndex != -1) insertEnd(currentJSHeapIndex, - event.startTime() - startTime(currentJSHeapIndex) - 1); - currentJSHeapIndex = insertStart(event.startTime(), type.detailType); + event.timestamp() - startTime(currentJSHeapIndex) - 1); + currentJSHeapIndex = insertStart(event.timestamp(), type.detailType); m_data.insert(currentJSHeapIndex, allocation); } } |