forked from qt-creator/qt-creator
QmlProfiler: Track requested, recorded, and displayed features
This way we can have a central filter menu to hide and show features in any connected views. Change-Id: I8142da0062a23f8166555016de6c7cb38060f725 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -151,8 +151,9 @@ void QmlProfilerClientManager::enableServices()
|
||||
disconnectClientSignals();
|
||||
d->profilerState->setServerRecording(false); // false by default (will be set to true when connected)
|
||||
delete d->qmlclientplugin.data();
|
||||
d->profilerState->setRecordedFeatures(0);
|
||||
d->qmlclientplugin = new QmlProfilerTraceClient(d->connection,
|
||||
d->profilerState->recordingFeatures());
|
||||
d->profilerState->requestedFeatures());
|
||||
connectClientSignals();
|
||||
}
|
||||
|
||||
@@ -178,8 +179,10 @@ void QmlProfilerClientManager::connectClientSignals()
|
||||
d->qmlclientplugin.data(), SLOT(sendRecordingStatus()));
|
||||
connect(d->qmlclientplugin.data(), SIGNAL(recordingChanged(bool)),
|
||||
d->profilerState, SLOT(setServerRecording(bool)));
|
||||
connect(d->profilerState, SIGNAL(recordingFeaturesChanged(quint64)),
|
||||
d->qmlclientplugin.data(), SLOT(setFeatures(quint64)));
|
||||
connect(d->profilerState, &QmlProfilerStateManager::requestedFeaturesChanged,
|
||||
d->qmlclientplugin.data(), &QmlProfilerTraceClient::setRequestedFeatures);
|
||||
connect(d->qmlclientplugin.data(), &QmlProfilerTraceClient::recordedFeaturesChanged,
|
||||
d->profilerState, &QmlProfilerStateManager::setRecordedFeatures);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -203,8 +206,10 @@ void QmlProfilerClientManager::disconnectClientSignals()
|
||||
// fixme: this should be unified for both clients
|
||||
disconnect(d->qmlclientplugin.data(), SIGNAL(recordingChanged(bool)),
|
||||
d->profilerState, SLOT(setServerRecording(bool)));
|
||||
disconnect(d->profilerState, SIGNAL(recordingFeaturesChanged(quint64)),
|
||||
d->qmlclientplugin.data(), SLOT(setFeatures(quint64)));
|
||||
disconnect(d->profilerState, &QmlProfilerStateManager::requestedFeaturesChanged,
|
||||
d->qmlclientplugin.data(), &QmlProfilerTraceClient::setRequestedFeatures);
|
||||
disconnect(d->qmlclientplugin.data(), &QmlProfilerTraceClient::recordedFeaturesChanged,
|
||||
d->profilerState, &QmlProfilerStateManager::setRecordedFeatures);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user