QmlProfiler: Send the correct end events when restricting to range

Clamping the timestamps and then sending the original events doesn't
make a lot of sense.

Change-Id: I42a42968d0188acb040649483d642c6b3f3e1038
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Ulf Hermann
2016-06-02 10:19:30 +02:00
parent 23afc7ad22
commit c81ed0bf9c

View File

@@ -218,7 +218,7 @@ void QmlProfilerDataModel::replayEvents(qint64 rangeStart, qint64 rangeEnd,
if (stack.isEmpty()) { if (stack.isEmpty()) {
QmlEvent endEvent(event); QmlEvent endEvent(event);
endEvent.setTimestamp(rangeEnd); endEvent.setTimestamp(rangeEnd);
loader(event, d->eventTypes[event.typeIndex()]); loader(endEvent, d->eventTypes[event.typeIndex()]);
} else { } else {
stack.pop(); stack.pop();
} }