Put calls to QQmlVmeProfiler behind "if (enabled)" macros
authorUlf Hermann <ulf.hermann@digia.com>
Tue, 7 Jan 2014 09:29:45 +0000 (10:29 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 22 Jan 2014 17:10:12 +0000 (18:10 +0100)
commitb287ed4c4dee9d705073badc79cdb0c3e183d19b
tree3e2632d2408dc73f44e84831ec71d0d99e3dac2d
parentf781d97e141632c646da09888c9612931f7c928b
Put calls to QQmlVmeProfiler behind "if (enabled)" macros

The construction of arguments to those calls may be expensive and should
be avoided if we're not really profiling.

Task-number: QTBUG-35315
Change-Id: I558fa4cae6cf532d22193283f1ee2a3b680e2eee
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/debugger/qqmlprofilerservice_p.h
src/qml/qml/qqmlvme.cpp