diff options
author | Christiaan Janssen <christiaan.janssen@nokia.com> | 2012-05-02 17:32:57 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-04 15:19:25 +0200 |
commit | 3b66a38e58fe030b6d2c4cd12c9884af660652a9 (patch) | |
tree | f5effe0e4d7aac0ed4073f0fc2c1e5bb99108534 /src/qml/debugger/qqmlprofilerservice_p.h | |
parent | 6f3bda0dce945a5fc75d8ebad302820fe9979d9b (diff) |
QmlProfiler: storing binding type
Change-Id: If1f02e1e6f6ce6aba9874a63d01a08d57571f991
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'src/qml/debugger/qqmlprofilerservice_p.h')
-rw-r--r-- | src/qml/debugger/qqmlprofilerservice_p.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/qml/debugger/qqmlprofilerservice_p.h b/src/qml/debugger/qqmlprofilerservice_p.h index eeaf871ab4..576f9811b5 100644 --- a/src/qml/debugger/qqmlprofilerservice_p.h +++ b/src/qml/debugger/qqmlprofilerservice_p.h @@ -80,6 +80,7 @@ struct Q_AUTOTEST_EXPORT QQmlProfilerData int column; //used by RangeLocation int framerate; //used by animation events int animationcount; //used by animation events + int bindingType; QByteArray toByteArray() const; }; @@ -125,6 +126,14 @@ public: MaximumRangeType }; + enum BindingType { + QmlBinding, + V8Binding, + V4Binding, + + MaximumBindingType + }; + static void initialize(); static bool startProfiling(); @@ -149,7 +158,7 @@ private: void addEventImpl(EventType); void animationFrameImpl(qint64); - void startRange(RangeType); + void startRange(RangeType, BindingType bindingType = QmlBinding); void rangeData(RangeType, const QString &); void rangeData(RangeType, const QUrl &); void rangeLocation(RangeType, const QString &, int, int); @@ -183,12 +192,12 @@ private: // struct QQmlBindingProfiler { - QQmlBindingProfiler(const QString &url, int line, int column) + QQmlBindingProfiler(const QString &url, int line, int column, QQmlProfilerService::BindingType bindingType) { QQmlProfilerService *instance = QQmlProfilerService::instance; enabled = instance ? instance->profilingEnabled() : false; if (enabled) { - instance->startRange(QQmlProfilerService::Binding); + instance->startRange(QQmlProfilerService::Binding, bindingType); instance->rangeLocation(QQmlProfilerService::Binding, url, line, column); } } |