projects
/
profile
/
ivi
/
qtdeclarative.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
QmlProfiler: Avoid overhead if profiling is not enabled
[profile/ivi/qtdeclarative.git]
/
src
/
qml
/
qml
/
qqmlbinding.cpp
diff --git
a/src/qml/qml/qqmlbinding.cpp
b/src/qml/qml/qqmlbinding.cpp
index
a19644f
..
bb6eb3b
100644
(file)
--- a/
src/qml/qml/qqmlbinding.cpp
+++ b/
src/qml/qml/qqmlbinding.cpp
@@
-339,7
+339,8
@@
void QQmlBinding::update(QQmlPropertyPrivate::WriteFlags flags)
if (!d->updating) {
QQmlBindingProfiler prof(d->url, d->line, d->column);
- prof.addDetail(expression());
+ if (prof.enabled)
+ prof.addDetail(expression());
d->updating = true;
QQmlAbstractExpression::DeleteWatcher watcher(d);