QmlProfiler: Properly clear the trace client

Rename the method to clear() and make sure all the event types and
pending events are actually cleared.

Change-Id: Ie6c916d374a00025f7d77d21345d039fe8cead80
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Ulf Hermann
2017-09-13 11:28:57 +02:00
parent 08e3d8f011
commit 1e49ac3041
3 changed files with 5 additions and 3 deletions

View File

@@ -198,10 +198,12 @@ QmlProfilerTraceClient::~QmlProfilerTraceClient()
delete d;
}
void QmlProfilerTraceClient::clearData()
void QmlProfilerTraceClient::clear()
{
d->serverTypeIds.clear();
d->eventTypeIds.clear();
d->rangesInProgress.clear();
d->pendingMessages.clear();
if (d->recordedFeatures != 0) {
d->recordedFeatures = 0;
emit recordedFeaturesChanged(0);