summaryrefslogtreecommitdiffstats
path: root/src/testlib/qbenchmarkmetric.h
diff options
context:
space:
mode:
authorMilian Wolff <milian.wolff@kdab.com>2016-02-16 15:57:15 +0100
committerMilian Wolff <milian.wolff@kdab.com>2016-03-03 09:55:22 +0000
commitfe04aba46df291389e462d9e89387a4e4547b33f (patch)
tree5cbf9222551bc6887e25f8e63ff570cfce0b83c5 /src/testlib/qbenchmarkmetric.h
parent9c1d3bc253abd4418f3050d19ec5f05bef3ada97 (diff)
Enable support for ref-cycles perf counter in QtTestLib.
The ref-cycles counter corresponds to the monotonic timestamp counter that can be read using the RDTSC assembler instruction. Using it instead of the default cycles counter is useful as it removes the effect of dynamic frequency scaling on the measurement. [ChangeLog][QtTest] The ref-cycles perf counter can now be used. Change-Id: Id7d56576db362706c20f9a399e5acea35ee799f2 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/testlib/qbenchmarkmetric.h')
-rw-r--r--src/testlib/qbenchmarkmetric.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testlib/qbenchmarkmetric.h b/src/testlib/qbenchmarkmetric.h
index 44bf14b9b6..6e423473b1 100644
--- a/src/testlib/qbenchmarkmetric.h
+++ b/src/testlib/qbenchmarkmetric.h
@@ -78,7 +78,8 @@ enum QBenchmarkMetric {
MinorPageFaults,
MajorPageFaults,
AlignmentFaults,
- EmulationFaults
+ EmulationFaults,
+ RefCPUCycles,
};
}