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:
Ulf Hermann
2015-06-30 15:55:33 +02:00
parent 3e5b797c53
commit 054f03e165
12 changed files with 272 additions and 70 deletions

View File

@@ -76,6 +76,7 @@ public slots:
void serverRecordingChanged();
void clientsDisconnected();
void setAvailableFeatures(quint64 features);
void setRecordedFeatures(quint64 features);
void recordingButtonChanged(bool recording);
void setRecording(bool recording);
@@ -95,14 +96,16 @@ private slots:
void showLoadDialog();
void onLoadSaveFinished();
void toggleRecordingFeature(QAction *action);
void toggleRequestedFeature(QAction *action);
void toggleVisibleFeature(QAction *action);
private:
void clearDisplay();
void populateFileFinder(QString projectDirectory = QString(), QString activeSysroot = QString());
template<QmlDebug::ProfileFeature feature>
void updateFeaturesMenu(quint64 features);
void updateFeatures(quint64 features);
bool checkForUnsavedNotes();
void restoreFeatureVisibility();
class QmlProfilerToolPrivate;
QmlProfilerToolPrivate *d;