QmlProfiler: Improve progress metrics for range models

Change-Id: I32b6c77c020c1a3141878282314d7acd87c90af4
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-11-02 15:51:36 +01:00
parent 913c5d8524
commit 58ffe05a2a

View File

@@ -87,29 +87,29 @@ void QmlProfilerRangeModel::loadData()
// store starttime-based instance
m_data.insert(insert(event.startTime, event.duration, event.typeIndex),
QmlRangeEventStartInstance());
updateProgress(count(), eventList.count() * 6);
updateProgress(count(), eventList.count() * 5);
}
updateProgress(2, 6);
updateProgress(1, 5);
// compute range nesting
computeNesting();
updateProgress(2, 5);
// compute nestingLevel - nonexpanded
computeNestingContracted();
updateProgress(3, 6);
updateProgress(3, 5);
// compute nestingLevel - expanded
computeExpandedLevels();
updateProgress(4, 6);
updateProgress(4, 5);
if (supportsBindingLoops())
findBindingLoops();
updateProgress(5, 6);
updateProgress(1, 1);
}