path: root/src
diff options
authorThiago Macieira <>2014-04-03 14:58:03 -0700
committerThe Qt Project <>2014-04-29 03:27:26 +0200
commiteaffcab287347badbf44e26416f5c2136101e1d2 (patch)
tree312eec8ed5fb0f5da5870d4c442bce478813490d /src
parent4833e5080c75a1f52a3040db5118fea5701d930e (diff)
Doc: add info about the -perf benchmark switch to QtTest's manual
Change-Id: I923dcf4f59db8281800950684fdd6dcc6715508e Reviewed-by: Jerome Pasion <>
Diffstat (limited to 'src')
1 files changed, 16 insertions, 3 deletions
diff --git a/src/testlib/doc/src/qttestlib-manual.qdoc b/src/testlib/doc/src/qttestlib-manual.qdoc
index 13654972ec..4125e63ddc 100644
--- a/src/testlib/doc/src/qttestlib-manual.qdoc
+++ b/src/testlib/doc/src/qttestlib-manual.qdoc
@@ -315,12 +315,15 @@
\row \li CPU tick counter
\li -tickcounter
\li Windows, Mac OS X, Linux, many UNIX-like systems.
- \row \li Valgrind Callgrind
- \li -callgrind
- \li Linux (if installed)
\row \li Event Counter
\li -eventcounter
\li All platforms
+ \row \li Valgrind Callgrind
+ \li -callgrind
+ \li Linux (if installed)
+ \row \li Linux Perf
+ \li -perf
+ \li Linux
In short, walltime is always available but requires many repetitions to
@@ -335,6 +338,16 @@
that were received by the event loop before they are sent to their corresponding
targets (this might include non-Qt events).
+ The Linux Performance Monitoring solution is available only on Linux and
+ provides many different counters, which can be selected by passing an
+ additional option \c {-perfcounter countername}, such as \c {-perfcounter
+ cache-misses}, \c {-perfcounter branch-misses}, or \c {-perfcounter
+ l1d-load-misses}. The default counter is \c {cpu-cycles}. The full list of
+ counters can be obtained by running any benchmark executable with the
+ option \c -perfcounterlist.
+ Note that using the performance counter may require enabling access to non-privileged applications.
\note Depending on the device configuration, tick counters on the
Windows CE platform may not be as fine-grained, compared to other platforms.
Devices that do not support high-resolution timers default to