forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -119,14 +119,14 @@ void FlameGraphModel::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;
|
||||
}
|
||||
|
||||
const QmlEvent *potentialParent = callStack.top();
|
||||
while (potentialParent &&
|
||||
potentialParent->startTime() + potentialParent->duration() <= event->startTime()) {
|
||||
potentialParent->timestamp() + potentialParent->duration() <= event->timestamp()) {
|
||||
callStack.pop();
|
||||
stackTop = stackTop->parent;
|
||||
potentialParent = callStack.top();
|
||||
|
||||
Reference in New Issue
Block a user