forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user