aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/jsruntime.pri
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2016-06-20 19:31:29 +0200
committerMilian Wolff <milian.wolff@kdab.com>2016-06-26 21:11:47 +0000
commitd453275a883b6af4e8c7c45dcc632c3728221047 (patch)
tree15152527be0d584f82212e97268d05ff319e27df /src/qml/jsruntime/jsruntime.pri
parent1d872f7ed1c9e0e8b4f34f4449ad7393f5afbec2 (diff)
Add heaptrack support to qv4mm pool allocator.
When you build qtdeclarative with CONFIG+=heaptrack then the allocations from the custom pool allocator can be traced with heaptrack. This works similar to the existing valgrind support. Change-Id: Ia988380415083aa1346c84c8c64b49ea3e17b7e2 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/jsruntime.pri')
-rw-r--r--src/qml/jsruntime/jsruntime.pri4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/jsruntime/jsruntime.pri b/src/qml/jsruntime/jsruntime.pri
index 6ef92511e2..7b58e60b9d 100644
--- a/src/qml/jsruntime/jsruntime.pri
+++ b/src/qml/jsruntime/jsruntime.pri
@@ -112,3 +112,7 @@ SOURCES += \
valgrind {
DEFINES += V4_USE_VALGRIND
}
+
+heaptrack {
+ DEFINES += V4_USE_HEAPTRACK
+}