QmlProfiler: Make sure there's minimal overhead when not enabled
authorKai Koehne <kai.koehne@nokia.com>
Wed, 14 Mar 2012 13:20:31 +0000 (14:20 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Mar 2012 11:02:48 +0000 (12:02 +0100)
commitc975f80db197cef667c512c06e3a03b17570e7d6
tree5d0a4e2598646c8074fe09ff25f45c1ea3a9642a
parent587a1ce124d1f814b576b1a5e9fa2d3ed2c9d336
QmlProfiler: Make sure there's minimal overhead when not enabled

Do expensive operations directly in the constructor, guarded by
and if (enabled). Also assert if the methods where this isn't feasible
are called altough debugging hasn't been enabled.

Change-Id: Ieaa3c71730042a88af2270203ea747af42ba5c58
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/qml/debugger/qqmlprofilerservice_p.h
src/qml/qml/qqmlboundsignal.cpp