forked from qt-creator/qt-creator
QmlProfiler: Only load data into child models when it's ready
Loading data on ProcessingData would lead to incomplete information about source code locations. Rebuilding the whole model on any kind of changed() signal is wasteful. Task-number: QTCREATORBUG-11100 Change-Id: I9f8d718bff6149ca2dc2d0482c11d66d940af15d Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -96,10 +96,10 @@ void QmlProfilerEventsModelProxy::limitToRange(qint64 rangeStart, qint64 rangeEn
|
||||
|
||||
void QmlProfilerEventsModelProxy::dataChanged()
|
||||
{
|
||||
if (d->modelManager->state() == QmlProfilerDataState::ClearingData)
|
||||
clear();
|
||||
else
|
||||
if (d->modelManager->state() == QmlProfilerDataState::Done)
|
||||
loadData();
|
||||
else if (d->modelManager->state() == QmlProfilerDataState::ClearingData)
|
||||
clear();
|
||||
}
|
||||
|
||||
QSet<QString> QmlProfilerEventsModelProxy::eventsInBindingLoop() const
|
||||
|
||||
Reference in New Issue
Block a user