aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilerclientmanager.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-01-03 13:40:48 +0100
committerUlf Hermann <ulf.hermann@qt.io>2018-01-03 13:51:47 +0000
commit4a5bd323a9bc9c2de44e92f8414ed283feb314b1 (patch)
treebb3968d1868ae1f2b0557250894d3e8ac48c4d3a /src/plugins/qmlprofiler/qmlprofilerclientmanager.h
parentffe120a43ff93e9ba0b37e987496c886c3274ad9 (diff)
QmlProfiler: Retain event types between sessions on same connection
The server won't re-send the event types. We need to keep them until the connection goes away. Otherwise we get invalid event types and soft asserts when trying to look up event types for new events. Also, when clearing the event types, also clear the server type IDs. Not clearing those constitutes a memory leak. Change-Id: I564b0c4cf0ed754549d2b8ede63c97fa01affcec Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerclientmanager.h')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerclientmanager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerclientmanager.h b/src/plugins/qmlprofiler/qmlprofilerclientmanager.h
index c64429abc7..15af88bbc2 100644
--- a/src/plugins/qmlprofiler/qmlprofilerclientmanager.h
+++ b/src/plugins/qmlprofiler/qmlprofilerclientmanager.h
@@ -50,6 +50,7 @@ public:
void connectToServer(const QUrl &server);
void clearConnection();
+ void clearEvents();
void clearBufferedData();
bool isConnected() const;