Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | void QBenchmarkTimeMeasurer::start() | - |
7 | { | - |
8 | time.start(); | - |
9 | } executed: } Execution Count:16 | 16 |
10 | | - |
11 | qint64 QBenchmarkTimeMeasurer::checkpoint() | - |
12 | { | - |
13 | return time.elapsed(); never executed: return time.elapsed(); | 0 |
14 | } | - |
15 | | - |
16 | qint64 QBenchmarkTimeMeasurer::stop() | - |
17 | { | - |
18 | return time.elapsed(); executed: return time.elapsed(); Execution Count:16 | 16 |
19 | } | - |
20 | | - |
21 | bool QBenchmarkTimeMeasurer::isMeasurementAccepted(qint64 measurement) | - |
22 | { | - |
23 | return (measurement > 50); never executed: return (measurement > 50); | 0 |
24 | } | - |
25 | | - |
26 | int QBenchmarkTimeMeasurer::adjustIterationCount(int suggestion) | - |
27 | { | - |
28 | return suggestion; executed: return suggestion; Execution Count:66446 | 66446 |
29 | } | - |
30 | | - |
31 | bool QBenchmarkTimeMeasurer::needsWarmupIteration() | - |
32 | { | - |
33 | return true; executed: return true; Execution Count:66438 | 66438 |
34 | } | - |
35 | | - |
36 | int QBenchmarkTimeMeasurer::adjustMedianCount(int) | - |
37 | { | - |
38 | return 1; executed: return 1; Execution Count:16 | 16 |
39 | } | - |
40 | | - |
41 | QTest::QBenchmarkMetric QBenchmarkTimeMeasurer::metricType() | - |
42 | { | - |
43 | return QTest::WalltimeMilliseconds; executed: return QTest::WalltimeMilliseconds; Execution Count:16 | 16 |
44 | } | - |
45 | | - |
46 | | - |
47 | | - |
48 | void QBenchmarkTickMeasurer::start() | - |
49 | { | - |
50 | startTicks = getticks(); | - |
51 | } | 0 |
52 | | - |
53 | qint64 QBenchmarkTickMeasurer::checkpoint() | - |
54 | { | - |
55 | CycleCounterTicks now = getticks(); | - |
56 | return qRound64(elapsed(now, startTicks)); never executed: return qRound64(elapsed(now, startTicks)); | 0 |
57 | } | - |
58 | | - |
59 | qint64 QBenchmarkTickMeasurer::stop() | - |
60 | { | - |
61 | CycleCounterTicks now = getticks(); | - |
62 | return qRound64(elapsed(now, startTicks)); never executed: return qRound64(elapsed(now, startTicks)); | 0 |
63 | } | - |
64 | | - |
65 | bool QBenchmarkTickMeasurer::isMeasurementAccepted(qint64) | - |
66 | { | - |
67 | return true; never executed: return true; | 0 |
68 | } | - |
69 | | - |
70 | int QBenchmarkTickMeasurer::adjustIterationCount(int) | - |
71 | { | - |
72 | return 1; never executed: return 1; | 0 |
73 | } | - |
74 | | - |
75 | int QBenchmarkTickMeasurer::adjustMedianCount(int) | - |
76 | { | - |
77 | return 1; never executed: return 1; | 0 |
78 | } | - |
79 | | - |
80 | bool QBenchmarkTickMeasurer::needsWarmupIteration() | - |
81 | { | - |
82 | return true; never executed: return true; | 0 |
83 | } | - |
84 | | - |
85 | QTest::QBenchmarkMetric QBenchmarkTickMeasurer::metricType() | - |
86 | { | - |
87 | return QTest::CPUTicks; never executed: return QTest::CPUTicks; | 0 |
88 | } | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
93 | | - |
94 | | - |
| | |