summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptparser.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-05-20 05:44:34 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-05-20 05:44:34 (GMT)
commitb5bada2b06d85ea74a851b98d3652aff8e64a723 (patch)
tree62ec1052863e2f9c702f5507c65cb2420aa91ccc /src/declarative/qml/qmlscriptparser.cpp
parente4d41f8090838359ae0deb1af410e8a501a6a9b6 (diff)
downloadQt-b5bada2b06d85ea74a851b98d3652aff8e64a723.zip
Qt-b5bada2b06d85ea74a851b98d3652aff8e64a723.tar.gz
Qt-b5bada2b06d85ea74a851b98d3652aff8e64a723.tar.bz2
Cleanup and fixes for performance logging.
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r--src/declarative/qml/qmlscriptparser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp
index ead7ee5..435a586 100644
--- a/src/declarative/qml/qmlscriptparser.cpp
+++ b/src/declarative/qml/qmlscriptparser.cpp
@@ -12,6 +12,8 @@
#include <QStack>
#include <QtDebug>
+#include <qfxperf.h>
+
QT_BEGIN_NAMESPACE
using namespace JavaScript;
@@ -621,6 +623,9 @@ QmlScriptParser::~QmlScriptParser()
bool QmlScriptParser::parse(const QByteArray &data, const QUrl &url)
{
+#ifdef Q_ENABLE_PERFORMANCE_LOG
+ QFxPerfTimer<QFxPerf::QmlParsing> pt;
+#endif
const QString fileName = url.toString();
QTextStream stream(data, QIODevice::ReadOnly);