aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qml.pri
diff options
context:
space:
mode:
authorGlenn Watson <glenn.watson@nokia.com>2012-05-15 11:57:51 +1000
committerQt by Nokia <qt-info@nokia.com>2012-05-15 05:30:26 +0200
commite0eec47cac3f9f06613011dd70db74b7cd7d61ef (patch)
treea7def7294cf3d32493ba79f25b182889ea51bfd8 /src/qml/qml/qml.pri
parentfec5068733373750d3a913fe3e6b3464a3f7275b (diff)
Add hooks for declarative memory profiler.
These macros effectively do nothing if the profiling library has not been preloaded. However, if the library is loaded they provide some additional context for each heap allocation, by tagging each subsequent allocation with the QML file that caused the allocation to occur. Change-Id: Ib1f56d0df0664e118e04e53e22a6942317b1baed Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/qml/qml/qml.pri')
-rw-r--r--src/qml/qml/qml.pri2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/qml.pri b/src/qml/qml/qml.pri
index 30acea1321..fbbdc84539 100644
--- a/src/qml/qml/qml.pri
+++ b/src/qml/qml/qml.pri
@@ -53,6 +53,7 @@ SOURCES += \
$$PWD/qqmlglobal.cpp \
$$PWD/qqmlfile.cpp \
$$PWD/qqmlbundle.cpp \
+ $$PWD/qqmlmemoryprofiler.cpp
HEADERS += \
$$PWD/qqmlglobal_p.h \
@@ -126,6 +127,7 @@ HEADERS += \
$$PWD/qqmlvaluetypeproxybinding_p.h \
$$PWD/qqmlfile.h \
$$PWD/qqmlbundle_p.h \
+ $$PWD/qqmlmemoryprofiler_p.h
include(parser/parser.pri)
include(rewriter/rewriter.pri)