diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2014-01-24 12:44:49 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-15 22:37:48 +0100 |
commit | 72420889aa54342da4472683e67e2c70b76a170f (patch) | |
tree | 3bbbb3a3f7b3286cb40f01763c42886bfd265500 /src/qml/qml/qqmlengine.cpp | |
parent | 9424383e6d0ea1dd02dcf1070259e21550da692a (diff) |
Add dedicated QML profiler and adapter
The remaining "profiling" parts of the QML profiler service are
engine specific and are best accessed through their own adapter.
Change-Id: Idb763104bdd80e4dabdf132ec1a496b9bc9f6f46
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
-rw-r--r-- | src/qml/qml/qqmlengine.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp index 68d021b5cb..d373c00574 100644 --- a/src/qml/qml/qqmlengine.cpp +++ b/src/qml/qml/qqmlengine.cpp @@ -556,7 +556,7 @@ DEFINE_BOOL_CONFIG_OPTION(qmlUseNewCompiler, QML_NEW_COMPILER) QQmlEnginePrivate::QQmlEnginePrivate(QQmlEngine *e) : propertyCapture(0), rootContext(0), isDebugging(false), - outputWarningsToStdErr(true), + profiler(0), outputWarningsToStdErr(true), cleanup(0), erroredBindings(0), inProgressCreations(0), workerScriptEngine(0), activeVME(0), activeObjectCreator(0), @@ -595,6 +595,12 @@ QQmlEnginePrivate::~QQmlEnginePrivate() (*iter)->release(); for (QHash<int, QQmlCompiledData *>::Iterator iter = m_compositeTypes.begin(); iter != m_compositeTypes.end(); ++iter) iter.value()->isRegisteredWithEngine = false; + delete profiler; +} + +void QQmlEnginePrivate::enableProfiler() +{ + profiler = new QQmlProfiler(); } void QQmlPrivate::qdeclarativeelement_destructor(QObject *o) |