Add hooks for declarative memory profiler.
authorGlenn Watson <glenn.watson@nokia.com>
Tue, 15 May 2012 01:57:51 +0000 (11:57 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 15 May 2012 03:30:26 +0000 (05:30 +0200)
commite0eec47cac3f9f06613011dd70db74b7cd7d61ef
treea7def7294cf3d32493ba79f25b182889ea51bfd8
parentfec5068733373750d3a913fe3e6b3464a3f7275b
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>
src/qml/qml/qml.pri
src/qml/qml/qqmlcomponent.cpp
src/qml/qml/qqmlincubator.cpp
src/qml/qml/qqmlmemoryprofiler.cpp [new file with mode: 0644]
src/qml/qml/qqmlmemoryprofiler_p.h [new file with mode: 0644]
src/qml/qml/qqmltypeloader.cpp
src/qml/qml/v8/qv8engine.cpp
src/quick/items/qquickcanvas.cpp
src/quick/items/qquickview.cpp