Use the new object creation profiler in qqmlvme
authorUlf Hermann <ulf.hermann@digia.com>
Wed, 27 Nov 2013 16:21:27 +0000 (17:21 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 29 Nov 2013 10:35:20 +0000 (11:35 +0100)
commit927c39c8db6b5feeea5a60b1eab2bbb07eb4bbe7
tree83f9560d45cc7facb3b453cc8888acbad80182a0
parent17c8fa04ce00a332310793b0e21991ab19c74e0d
Use the new object creation profiler in qqmlvme

There are 3 ways to create objects: "Simple", "Cpp" and "Qml". This
patch starts a new profiler whenever a new object is created.
It's assumed that everything the interpreter main loop does between
two creation instructions is related to the object just created.
The componentComplete calls are profiled by restoring saved states
of the profilers used during the creation of the respective objects.

Task-number: QTCREATORBUG-10631

Change-Id: I2645eab7ba32dfb8749cb51ec888d0f0e8fef188
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/qqmlvme.cpp
src/qml/qml/qqmlvme_p.h