aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-09-15 15:13:18 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-10-15 08:23:43 +0000
commit35fa7aed1db1157a7189ff271ebd241ebe04d2cc (patch)
treecff07369b0cc9d5c20470dc06461a923ab130e0c
parentd56286283dc41d1e97502f48ded754c059951060 (diff)
qmlprofiler: Clear trace client when trace is finished
If the application was killed with -9 or similar there may be some open ranges left. We don't want them to influence the next session. Change-Id: I284086ff96d81a829f02e160ef8b82417fd51466 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
-rw-r--r--tools/qmlprofiler/qmlprofilerapplication.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/qmlprofiler/qmlprofilerapplication.cpp b/tools/qmlprofiler/qmlprofilerapplication.cpp
index 010e82ce5a..11718d60ad 100644
--- a/tools/qmlprofiler/qmlprofilerapplication.cpp
+++ b/tools/qmlprofiler/qmlprofilerapplication.cpp
@@ -553,6 +553,8 @@ void QmlProfilerApplication::processFinished()
}
if (!m_interactive)
exit(exitCode);
+ else
+ m_qmlProfilerClient.clearData();
}
void QmlProfilerApplication::traceClientEnabledChanged(bool enabled)
@@ -577,6 +579,8 @@ void QmlProfilerApplication::traceFinished()
} else {
prompt(tr("Application stopped recording."), false);
}
+
+ m_qmlProfilerClient.clearData();
}
void QmlProfilerApplication::prompt(const QString &line, bool ready)