diff options
author | Ulf Hermann <[email protected]> | 2016-04-28 15:40:02 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2016-05-06 10:36:40 +0000 |
commit | 215c0533d20950d412e304dc41bc0bc93afac84f (patch) | |
tree | d6ae94409a4d407b3d2bbb15097f8cd14c093fc3 /src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.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 <[email protected]>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp')
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp index f64d95258bc..c46b51d1528 100644 --- a/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerstatisticsmodel.cpp @@ -188,8 +188,8 @@ void QmlProfilerStatisticsModel::loadData(qint64 rangeStart, qint64 rangeEnd) continue; if (checkRanges) { - if ((event->startTime() + event->duration() < rangeStart) - || (event->startTime() > rangeEnd)) + if ((event->timestamp() + event->duration() < rangeStart) + || (event->timestamp() > rangeEnd)) continue; } @@ -208,17 +208,17 @@ void QmlProfilerStatisticsModel::loadData(qint64 rangeStart, qint64 rangeEnd) durations[event->typeIndex()].append(event->duration()); // qml time computation - if (event->startTime() > lastEndTime) { // assume parent event if starts before last end + if (event->timestamp() > lastEndTime) { // assume parent event if starts before last end qmlTime += event->duration(); - lastEndTime = event->startTime() + event->duration(); + lastEndTime = event->timestamp() + event->duration(); } // // binding loop detection // const QmlEvent *potentialParent = callStack.top(); - while (potentialParent && !(potentialParent->startTime() + potentialParent->duration() > - event->startTime())) { + while (potentialParent && !(potentialParent->timestamp() + potentialParent->duration() > + event->timestamp())) { callStack.pop(); potentialParent = callStack.top(); } @@ -362,14 +362,14 @@ void QmlProfilerStatisticsParentsModel::loadData() continue; // level computation - if (endtimesPerLevel[level] > event.startTime()) { + if (endtimesPerLevel[level] > event.timestamp()) { level++; } else { while (level > Constants::QML_MIN_LEVEL && - endtimesPerLevel[level-1] <= event.startTime()) + endtimesPerLevel[level-1] <= event.timestamp()) level--; } - endtimesPerLevel[level] = event.startTime() + event.duration(); + endtimesPerLevel[level] = event.timestamp() + event.duration(); int parentTypeIndex = -1; if (level > Constants::QML_MIN_LEVEL && lastParent.contains(level-1)) @@ -424,14 +424,14 @@ void QmlProfilerStatisticsChildrenModel::loadData() continue; // level computation - if (endtimesPerLevel[level] > event.startTime()) { + if (endtimesPerLevel[level] > event.timestamp()) { level++; } else { while (level > Constants::QML_MIN_LEVEL && - endtimesPerLevel[level-1] <= event.startTime()) + endtimesPerLevel[level-1] <= event.timestamp()) level--; } - endtimesPerLevel[level] = event.startTime() + event.duration(); + endtimesPerLevel[level] = event.timestamp() + event.duration(); int parentId = -1; |