forked from qt-creator/qt-creator
QmlProfiler: Directly pass events from client to model
Running them through the model manager via signals doesn't make much sense anymore. Change-Id: I6103d281dd640493f28acd7e787ea49712ebd8df Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
@@ -172,6 +172,7 @@ void QmlProfilerClientManager::createConnection()
|
||||
delete d->qmlclientplugin.data();
|
||||
d->profilerState->setRecordedFeatures(0);
|
||||
d->qmlclientplugin = new QmlProfilerTraceClient(d->connection,
|
||||
d->modelManager->qmlModel(),
|
||||
d->profilerState->requestedFeatures());
|
||||
d->qmlclientplugin->setFlushInterval(d->flushInterval);
|
||||
connectClientSignals();
|
||||
@@ -203,8 +204,6 @@ void QmlProfilerClientManager::connectClientSignals()
|
||||
d->qmlclientplugin.data(), &QmlProfilerTraceClient::setRequestedFeatures);
|
||||
connect(d->qmlclientplugin.data(), &QmlProfilerTraceClient::recordedFeaturesChanged,
|
||||
d->profilerState, &QmlProfilerStateManager::setRecordedFeatures);
|
||||
connect(d->qmlclientplugin.data(), &QmlProfilerTraceClient::qmlEvent,
|
||||
d->modelManager, &QmlProfilerModelManager::addQmlEvent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -225,8 +224,6 @@ void QmlProfilerClientManager::disconnectClientSignals()
|
||||
d->qmlclientplugin.data(), &QmlProfilerTraceClient::setRequestedFeatures);
|
||||
disconnect(d->qmlclientplugin.data(), &QmlProfilerTraceClient::recordedFeaturesChanged,
|
||||
d->profilerState, &QmlProfilerStateManager::setRecordedFeatures);
|
||||
disconnect(d->qmlclientplugin.data(), &QmlProfilerTraceClient::qmlEvent,
|
||||
d->modelManager, &QmlProfilerModelManager::addQmlEvent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user