diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-05-20 05:44:34 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-05-20 05:44:34 (GMT) |
commit | b5bada2b06d85ea74a851b98d3652aff8e64a723 (patch) | |
tree | 62ec1052863e2f9c702f5507c65cb2420aa91ccc /src/declarative/qml/qmlscriptparser.cpp | |
parent | e4d41f8090838359ae0deb1af410e8a501a6a9b6 (diff) | |
download | Qt-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.cpp | 5 |
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); |