QmlProfiler: Eliminate ambiguity from TimelineModelAggregator::count()

It wasn't helpful that this method could either count all events or
only the events from a specific model.

Change-Id: I09dcb37edd3403a23f6ee9008fc71b6761aa9e26
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-09-29 12:36:29 +02:00
parent dbb4e761ef
commit cfaa30d0b9
5 changed files with 12 additions and 17 deletions

View File

@@ -99,7 +99,10 @@ Canvas {
target: qmlProfilerModelProxy
onDataAvailable: {
dataReady = true;
increment = Math.ceil(qmlProfilerModelProxy.count() / eventsPerPass);
increment = 0;
for (var i = 0; i < qmlProfilerModelProxy.modelCount(); ++i)
increment += qmlProfilerModelProxy.count(i);
increment = Math.ceil(increment / eventsPerPass);
offset = -1;
requestPaint();
}