diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-11-13 11:12:45 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-11-17 18:42:56 +0000 |
commit | fee44872dce081b3480f3cb3bb74d12940a92068 (patch) | |
tree | 354964ced53b31fd5485ce8979e0d7b13608f641 /src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h | |
parent | ec88ecf42bae7bfd486bb171a3325b7b2dabcca9 (diff) |
Extend QDebugMessageService
Add category and timestamp, and allow synchronizing the timestamps with
QQmlProfilerService.
Change-Id: I8dc67e43e1087e231167fc4cfdfb5f659e00c5b2
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h')
-rw-r--r-- | src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h b/src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h index 04f5966dd7..a5ff1fc3d7 100644 --- a/src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h +++ b/src/plugins/qmltooling/qmldbg_debugger/qdebugmessageservice.h @@ -49,6 +49,7 @@ #include <QtCore/qlogging.h> #include <QtCore/qmutex.h> +#include <QtCore/qelapsedtimer.h> QT_BEGIN_NAMESPACE @@ -60,8 +61,8 @@ class QDebugMessageServiceImpl : public QDebugMessageService public: QDebugMessageServiceImpl(QObject *parent = 0); - void sendDebugMessage(QtMsgType type, const QMessageLogContext &ctxt, - const QString &buf); + void sendDebugMessage(QtMsgType type, const QMessageLogContext &ctxt, const QString &buf); + void synchronizeTime(const QElapsedTimer &otherTimer); protected: void stateChanged(State); @@ -72,6 +73,7 @@ private: QtMessageHandler oldMsgHandler; QQmlDebugService::State prevState; QMutex initMutex; + QElapsedTimer timer; }; QT_END_NAMESPACE |