aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/perfprofiler/perfprofilertool.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-01-28 10:04:15 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-01-28 12:37:57 +0000
commit381d2de83416afd85c993b39b5c0df440ca8124e (patch)
tree07a8fa0785e1d98bfdb07b5986b9d73dd0aef642 /src/plugins/perfprofiler/perfprofilertool.h
parent39eec848ceb57b4d1caa6ab3086f1c2d48f9cd9a (diff)
PerfProfiler: create views on demand
Creating the views on application startup wastes time and memory if we never use them. Delay the creation until the first time we show the views. Task-number: QTCREATORBUG-21894 Change-Id: I62e4e97cfc34e36e8dd924b44250c03328d9519d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/perfprofiler/perfprofilertool.h')
-rw-r--r--src/plugins/perfprofiler/perfprofilertool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/perfprofiler/perfprofilertool.h b/src/plugins/perfprofiler/perfprofilertool.h
index 6daf47fb74..7c0296b28d 100644
--- a/src/plugins/perfprofiler/perfprofilertool.h
+++ b/src/plugins/perfprofiler/perfprofilertool.h
@@ -72,8 +72,11 @@ public:
signals:
void recordingChanged(bool recording);
void aggregatedChanged(bool aggregated);
+ void viewsCreated();
private:
+ void createViews();
+
void gotoSourceLocation(QString filePath, int lineNumber, int columnNumber);
void showLoadPerfDialog();
void showLoadTraceDialog();
@@ -111,6 +114,7 @@ private:
QToolButton *m_filterButton = nullptr;
QMenu *m_filterMenu = nullptr;
QToolButton *m_aggregateButton = nullptr;
+ QToolButton *m_tracePointsButton = nullptr;
PerfProfilerTraceView *m_traceView = nullptr;
PerfProfilerStatisticsView *m_statisticsView = nullptr;