aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/declarative/qdeclarativedebugging.qdoc
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-11-03 17:58:07 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-09 08:23:57 +0100
commitcd633df026733f420b5b63ea8b6a4ab943408db9 (patch)
treeb13caa4b3f3851b4bc6f4836a0edf0740169258c /doc/src/declarative/qdeclarativedebugging.qdoc
parent2b5432bd63483998da39aa4eadfb10d0e43ba0b6 (diff)
Add console.time / console.timeEnd API
Implement console.time() / console.timeEnd() as also provided by FireBug / Safari. Task-number: QTBUG-22347 Change-Id: I94fcadbb0c54fdf60dc2559e3ae63d613e29630b Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'doc/src/declarative/qdeclarativedebugging.qdoc')
-rw-r--r--doc/src/declarative/qdeclarativedebugging.qdoc14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/src/declarative/qdeclarativedebugging.qdoc b/doc/src/declarative/qdeclarativedebugging.qdoc
index 189d4449e5..a34c2faa62 100644
--- a/doc/src/declarative/qdeclarativedebugging.qdoc
+++ b/doc/src/declarative/qdeclarativedebugging.qdoc
@@ -43,6 +43,20 @@ Rectangle {
}
\endqml
+\c console.time and console.timeEnd log the time (in milliseconds) that was spent between
+the calls. Both take a string argument that identifies the measurement. For example:
+
+\qml
+function f() {
+ console.time("wholeFunction");
+ console.time("firstPart");
+ // first part
+ console.timeEnd("firstPart");
+ // second part
+ console.timeEnd("wholeFunction");
+}
+\endqml
+
\section1 Debugging Transitions
When a transition doesn't look quite right, it can be helpful to view it in slow