QmlProfiler: Delay creation of views until activation

We don't need to waste the time and memory required to create the views
if they are never shown.

Change-Id: I56add08981c90263e6735f5b7e6fac2140b457e4
Fixes: QTCREATORBUG-21894
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Ulf Hermann
2019-01-28 09:10:46 +01:00
parent 7a5198e867
commit 39eec848ce
5 changed files with 29 additions and 12 deletions

View File

@@ -58,8 +58,11 @@ public:
signals:
void typeSelected(int typeId);
void gotoSourceLocation(QString,int,int);
void viewsCreated();
private:
void createViews();
QmlProfilerTraceView *m_traceView = nullptr;
QmlProfilerStatisticsView *m_statisticsView = nullptr;
FlameGraphView *m_flameGraphView = nullptr;