diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2017-08-11 11:12:49 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-08-14 09:39:59 +0000 |
commit | 63551d7711170e2f0c96922d465dcea89f2963f7 (patch) | |
tree | 0c994d2e4c5cd46e996e825db012563342835581 /src/plugins/qmlprofiler/flamegraphmodel.h | |
parent | e7c950eb11c393a2b999e2a175f71b72716b6168 (diff) |
QmlProfiler: Rebuild the flamegraph model when visible features change
This is more expensive than just setting the filtered items' height to
0. However, this way we implicitly also change the size of the root
element, group equal items that end up on the same level by filtering,
recalculate the cutoff for too small items and resort all items by
width.
Change-Id: Ida2c5acd9848c5644ecff052d78e9fe5ad962606
Task-number: QTCREATORBUG-18713
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/flamegraphmodel.h')
-rw-r--r-- | src/plugins/qmlprofiler/flamegraphmodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/flamegraphmodel.h b/src/plugins/qmlprofiler/flamegraphmodel.h index 9fcc6e674c..587de41cf7 100644 --- a/src/plugins/qmlprofiler/flamegraphmodel.h +++ b/src/plugins/qmlprofiler/flamegraphmodel.h @@ -91,6 +91,7 @@ public slots: void loadEvent(const QmlEvent &event, const QmlEventType &type); void finalize(); void onModelManagerStateChanged(); + void restrictToFeatures(quint64 visibleFeatures); void loadNotes(int typeId, bool emitSignal); void clear(); @@ -105,6 +106,7 @@ private: FlameGraphData *m_callStackTop; FlameGraphData *m_compileStackTop; + quint64 m_acceptedFeatures; int m_modelId; QmlProfilerModelManager *m_modelManager; |