forked from qt-creator/qt-creator
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:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user