diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2013-11-27 17:21:27 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-29 11:35:20 +0100 |
commit | 927c39c8db6b5feeea5a60b1eab2bbb07eb4bbe7 (patch) | |
tree | 83f9560d45cc7facb3b453cc8888acbad80182a0 /src/qml/qml/qqmlvme_p.h | |
parent | 17c8fa04ce00a332310793b0e21991ab19c74e0d (diff) |
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>
Diffstat (limited to 'src/qml/qml/qqmlvme_p.h')
-rw-r--r-- | src/qml/qml/qqmlvme_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlvme_p.h b/src/qml/qml/qqmlvme_p.h index e76b485a5c..d5afd4c67a 100644 --- a/src/qml/qml/qqmlvme_p.h +++ b/src/qml/qml/qqmlvme_p.h @@ -68,6 +68,7 @@ #include <private/qfinitestack_p.h> #include <private/qqmltrace_p.h> +#include <private/qqmlprofilerservice_p.h> QT_BEGIN_NAMESPACE @@ -171,6 +172,7 @@ private: #ifdef QML_ENABLE_TRACE QFiniteStack<QQmlData *> parserStatusData; #endif + QQmlVmeProfiler profiler; QQmlGuardedContextData rootContext; QQmlGuardedContextData creationContext; |