From 07a797ef80494251347447295ae529c0217261e2 Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Mon, 8 Jan 2024 12:53:11 +0100 Subject: [PATCH] add the thread-ID to the output of JKQTPAutoOutputTimer --- lib/jkqtcommon/jkqtpdebuggingtools.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/jkqtcommon/jkqtpdebuggingtools.cpp b/lib/jkqtcommon/jkqtpdebuggingtools.cpp index 69b90cac5a..4cd27e823e 100644 --- a/lib/jkqtcommon/jkqtpdebuggingtools.cpp +++ b/lib/jkqtcommon/jkqtpdebuggingtools.cpp @@ -21,7 +21,7 @@ #include "jkqtcommon/jkqtpdebuggingtools.h" #include #include - +#include namespace JKQTPAutoOutputTimer_private { thread_local int global_indent=0; @@ -33,9 +33,9 @@ JKQTPAutoOutputTimer::JKQTPAutoOutputTimer(const QString& _message) : this->indent=QString(JKQTPAutoOutputTimer_private::global_indent, QLatin1Char(' ')); JKQTPAutoOutputTimer_private::global_indent+=4; #if QT_VERSION >= 0x040800 - qDebug()<indent<<"TIMER_START: "<indent+"TIMER_START: "+message; #else - qDebug()<indent<<"TIMER_START: "<indent+"TIMER_START: "+message; #endif start(); } @@ -43,9 +43,9 @@ JKQTPAutoOutputTimer::JKQTPAutoOutputTimer(const QString& _message) : JKQTPAutoOutputTimer::~JKQTPAutoOutputTimer() { #if QT_VERSION >= 0x040800 - qDebug()<indent<<"TIMER_END: "<indent+"TIMER_END: "+message+" DUR: "<indent<<"TIMER_END: "<indent+"TIMER_END: "+message+" DUR: "<= 0x040800 - qDebug()<indent<<"TIMER_MESSAGE: "<message<<" "<indent+"TIMER_MESSAGE: "+this->message+" "+message+" DUR: "<indent<<"TIMER_MESSAGE: "<message<<" "<indent+"TIMER_MESSAGE: "+this->message+" "+message+" DUR: "<