Commit 4a87c3ae authored by Christiaan Janssen's avatar Christiaan Janssen Committed by Kai Koehne
Browse files

QmlProfiler: fix bug in event statistics

When compiling the statistics the animation frames are supposed to
be skipped.  The skip was missing in the event level computation,
which produced wrong results at the end.

Change-Id: I5aedc037bacd83cf89f778e08aa39a800c6d30ed
Reviewed-by: default avatarKai Koehne <>
parent b2b48bda
......@@ -942,6 +942,14 @@ void QmlProfilerEventList::computeNestingLevels()
qint64 st = d->m_startTimeSortedList[i].startTime;
int type = d->m_startTimeSortedList[i].description->eventType;
if (type == QmlJsDebugClient::Painting) {
// animation/paint events have level 1 by definition,
// but are not considered parents of other events for statistical purposes
d->m_startTimeSortedList[i].level = MIN_LEVEL;
d->m_startTimeSortedList[i].nestingLevel = MIN_LEVEL;
// general level
if (endtimesPerLevel[level] > st) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment