aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-06-02 16:32:16 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-02 16:38:20 +0200
commit9474bab37dc030ebf2f9fcd582fd6b4f2193c813 (patch)
treea0a2f4139b0964e67b817333063a82b69036e94b /tests/auto/qml/debugger
parent69c6d2648836043e707416c6ae8f3c4b695c906f (diff)
Dump all received messages if tst_QQmlProfilerService fails
Without all the context we can't really tell what happened. Task-number: QTBUG-39169 Change-Id: Ic5192498440a0d55c279549243dfce65f8168317 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/qml/debugger')
-rw-r--r--tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
index ace9269fa2..5fd985f6d5 100644
--- a/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
+++ b/tests/auto/qml/debugger/qqmlprofilerservice/tst_qqmlprofilerservice.cpp
@@ -361,6 +361,27 @@ void tst_QQmlProfilerService::checkTraceReceived()
void tst_QQmlProfilerService::cleanup()
{
if (QTest::currentTestFailed()) {
+ qDebug() << "Synchronous Messages:" << m_client->synchronousMessages.count();
+ int i = 0;
+ foreach (const QQmlProfilerData &data, m_client->synchronousMessages) {
+ qDebug() << i++ << data.time << data.messageType << data.detailType << data.detailData
+ << data.line << data.column;
+ }
+ qDebug() << " ";
+ qDebug() << "Asynchronous Messages:" << m_client->asynchronousMessages.count();
+ i = 0;
+ foreach (const QQmlProfilerData &data, m_client->asynchronousMessages) {
+ qDebug() << i++ << data.time << data.messageType << data.detailType << data.detailData
+ << data.framerate << data.animationcount << data.line << data.column;
+ }
+ qDebug() << " ";
+ qDebug() << "Pixmap Cache Messages:" << m_client->pixmapMessages.count();
+ i = 0;
+ foreach (const QQmlProfilerData &data, m_client->pixmapMessages) {
+ qDebug() << i++ << data.time << data.messageType << data.detailType << data.detailData
+ << data.line << data.column;
+ }
+ qDebug() << " ";
qDebug() << "Process State:" << (m_process ? m_process->state() : QLatin1String("null"));
qDebug() << "Application Output:" << (m_process ? m_process->output() : QLatin1String("null"));
qDebug() << "Connection State:" << (m_connection ? m_connection->stateString() : QLatin1String("null"));