forked from qt-creator/qt-creator
QmlProfiler: display animation traces from Qt5
Change-Id: I7959052ec07089419e85186b0b0e58f911e273ec Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
@@ -151,6 +151,12 @@ void QmlProfilerTraceClient::messageReceived(const QByteArray &data)
|
||||
if (event == EndTrace) {
|
||||
emit this->traceFinished(time);
|
||||
d->maximumTime = time;
|
||||
d->maximumTime = qMax(time, d->maximumTime);
|
||||
} else if (event == AnimationFrame) {
|
||||
int frameRate, animationCount;
|
||||
stream >> frameRate >> animationCount;
|
||||
emit this->frame(time, frameRate, animationCount);
|
||||
d->maximumTime = qMax(time, d->maximumTime);
|
||||
} else if (event == StartTrace) {
|
||||
emit this->traceStarted(time);
|
||||
d->maximumTime = time;
|
||||
|
||||
Reference in New Issue
Block a user