forked from qt-creator/qt-creator
QmlProfiler: Include debug messages in trace
A separate model will show them in the timeline for better orientation. Change-Id: I537bac82ddef6a8bcc64ae403731512f8edcc9db Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
namespace QmlProfiler {
|
||||
namespace Internal {
|
||||
|
||||
static const char *ProfileFeatureNames[QmlDebug::MaximumProfileFeature] = {
|
||||
static const char *ProfileFeatureNames[] = {
|
||||
QT_TRANSLATE_NOOP("MainView", "JavaScript"),
|
||||
QT_TRANSLATE_NOOP("MainView", "Memory Usage"),
|
||||
QT_TRANSLATE_NOOP("MainView", "Pixmap Cache"),
|
||||
@@ -56,9 +56,12 @@ static const char *ProfileFeatureNames[QmlDebug::MaximumProfileFeature] = {
|
||||
QT_TRANSLATE_NOOP("MainView", "Creating"),
|
||||
QT_TRANSLATE_NOOP("MainView", "Binding"),
|
||||
QT_TRANSLATE_NOOP("MainView", "Handling Signal"),
|
||||
QT_TRANSLATE_NOOP("MainView", "Input Events")
|
||||
QT_TRANSLATE_NOOP("MainView", "Input Events"),
|
||||
QT_TRANSLATE_NOOP("MainView", "Debug Messages")
|
||||
};
|
||||
|
||||
Q_STATIC_ASSERT(sizeof(ProfileFeatureNames) == sizeof(char *) * QmlDebug::MaximumProfileFeature);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
QmlProfilerTraceTime::QmlProfilerTraceTime(QObject *parent) :
|
||||
QObject(parent), m_startTime(-1), m_endTime(-1)
|
||||
|
Reference in New Issue
Block a user