summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2018-07-24 14:23:07 +0200
committerUlf Hermann <ulf.hermann@qt.io>2018-07-26 10:16:12 +0000
commite9c29a30f4915c82e90c960adca3c5e30ed19218 (patch)
tree4cbbb50411c766913bd65aa5162fb333d89679dc
parentc35358c97c5f03623a65a5a48d0328513713befd (diff)
When manually finalizing PerfUnwind, also send aux data
The point is that we don't want to write to output afterwards. Change-Id: Ie6d89a44ebc698a7473fae5dd2e3f9ce66f1ae6b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--app/perfunwind.cpp5
-rw-r--r--app/perfunwind.h3
2 files changed, 4 insertions, 4 deletions
diff --git a/app/perfunwind.cpp b/app/perfunwind.cpp
index 773b501..ddb6774 100644
--- a/app/perfunwind.cpp
+++ b/app/perfunwind.cpp
@@ -132,10 +132,7 @@ PerfUnwind::PerfUnwind(QIODevice *output, const QString &systemRoot, const QStri
PerfUnwind::~PerfUnwind()
{
- finishedRound();
- flushEventBuffer(0);
- for (const QByteArray &aux : qAsConst(m_auxBuffer))
- sendBuffer(aux);
+ finalize();
delete[] m_debugInfoPath;
qDeleteAll(m_symbolTables);
diff --git a/app/perfunwind.h b/app/perfunwind.h
index 21b39b5..4779544 100644
--- a/app/perfunwind.h
+++ b/app/perfunwind.h
@@ -223,6 +223,9 @@ public:
{
finishedRound();
flushEventBuffer(0);
+ for (const QByteArray &aux : qAsConst(m_auxBuffer))
+ sendBuffer(aux);
+ m_auxBuffer.clear();
}
private: