qbenchmarkmeasurement.cpp

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

Generated by Squish Coco Non-Commercial