From a1727a9d6d718bc312f011a8ab66930a519204e2 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 31 May 2024 13:46:46 +0200 Subject: [PATCH] Debugger: fix compiling dumper tests Change-Id: Ic06483bfeee376e9cc3e7beb516b9bde9cb5b46d Reviewed-by: hjk --- tests/auto/debugger/tst_dumpers.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/auto/debugger/tst_dumpers.cpp b/tests/auto/debugger/tst_dumpers.cpp index 14c0e3500ab..d8ed605f822 100644 --- a/tests/auto/debugger/tst_dumpers.cpp +++ b/tests/auto/debugger/tst_dumpers.cpp @@ -1171,6 +1171,7 @@ private: bool m_isQnxGdb = false; bool m_useGLibCxxDebug = false; int m_totalDumpTime = 0; + int m_totalInnerTime = 0; }; void tst_Dumpers::initTestCase() @@ -1344,6 +1345,8 @@ void tst_Dumpers::cleanup() void tst_Dumpers::cleanupTestCase() { qCDebug(lcDumpers) << "Dumpers total: " << QTime::fromMSecsSinceStartOfDay(m_totalDumpTime); + qCDebug(lcDumpers, "TotalOuter: %5d", m_totalDumpTime); + qCDebug(lcDumpers, "TotalInner: %5d", m_totalInnerTime); } void tst_Dumpers::dumper() @@ -1890,6 +1893,9 @@ void tst_Dumpers::dumper() actual.fromStringMultiple(QString::fromLocal8Bit(contents)); context.nameSpace = actual["qtnamespace"].data(); + int runtime = actual["runtime"].data().toFloat() * 1000; + qCDebug(lcDumpers, "CaseInner: %5d", runtime); + m_totalInnerTime += runtime; actual = actual["data"]; //qCDebug(lcDumpers) << "FOUND NS: " << context.nameSpace; @@ -1914,6 +1920,9 @@ void tst_Dumpers::dumper() context.nameSpace.clear(); contents.replace("\\\"", "\""); actual.fromString(QString::fromLocal8Bit(contents)); + int runtime = actual["runtime"].data().toFloat() * 1000; + qCDebug(lcDumpers, "CaseInner: %5d", runtime); + m_totalInnerTime += runtime; } else { QByteArray localsAnswerStart("|R|42|"); QByteArray locals("|script|");