aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlprofiler
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-11-13 11:12:45 +0100
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-11-17 18:42:56 +0000
commitfee44872dce081b3480f3cb3bb74d12940a92068 (patch)
tree354964ced53b31fd5485ce8979e0d7b13608f641 /tools/qmlprofiler
parentec88ecf42bae7bfd486bb171a3325b7b2dabcca9 (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 'tools/qmlprofiler')
-rw-r--r--tools/qmlprofiler/qmlprofilerapplication.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/qmlprofiler/qmlprofilerapplication.cpp b/tools/qmlprofiler/qmlprofilerapplication.cpp
index cd34cd603f..455faeb1c0 100644
--- a/tools/qmlprofiler/qmlprofilerapplication.cpp
+++ b/tools/qmlprofiler/qmlprofilerapplication.cpp
@@ -71,9 +71,13 @@ static const char *features[] = {
"creating",
"binding",
"handlingsignal",
- "inputevents"
+ "inputevents",
+ "debugmessages"
};
+Q_STATIC_ASSERT(sizeof(features) ==
+ QQmlProfilerDefinitions::MaximumProfileFeature * sizeof(char *));
+
QmlProfilerApplication::QmlProfilerApplication(int &argc, char **argv) :
QCoreApplication(argc, argv),
m_runMode(LaunchMode),