OpenCoverage

qbenchmarkevent.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/testlib/qbenchmarkevent.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QBenchmarkEvent::QBenchmarkEvent()-
5 : eventCounter(0)-
6{-
7}
executed 73 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
73
8-
9QBenchmarkEvent::~QBenchmarkEvent()-
10{-
11}-
12-
13void QBenchmarkEvent::start()-
14{-
15 eventCounter = 0;-
16 QAbstractEventDispatcher::instance()->installNativeEventFilter(this);-
17}
executed 404 times by 1 test: end of block
Executed by:
  • tst_selftests - unknown status
404
18-
19qint64 QBenchmarkEvent::checkpoint()-
20{-
21 return
never executed: return eventCounter;
eventCounter;
never executed: return eventCounter;
0
22}-
23-
24qint64 QBenchmarkEvent::stop()-
25{-
26 QAbstractEventDispatcher::instance()->removeNativeEventFilter(this);-
27 return
executed 404 times by 1 test: return eventCounter;
Executed by:
  • tst_selftests - unknown status
eventCounter;
executed 404 times by 1 test: return eventCounter;
Executed by:
  • tst_selftests - unknown status
404
28}-
29-
30-
31-
32-
33bool QBenchmarkEvent::isMeasurementAccepted(qint64 measurement)-
34{-
35 (void)measurement;;-
36 return
executed 252 times by 1 test: return true;
Executed by:
  • tst_selftests - unknown status
true;
executed 252 times by 1 test: return true;
Executed by:
  • tst_selftests - unknown status
252
37}-
38-
39int QBenchmarkEvent::adjustIterationCount(int suggestion)-
40{-
41 return
executed 254 times by 1 test: return suggestion;
Executed by:
  • tst_selftests - unknown status
suggestion;
executed 254 times by 1 test: return suggestion;
Executed by:
  • tst_selftests - unknown status
254
42}-
43-
44int QBenchmarkEvent::adjustMedianCount(int suggestion)-
45{-
46 (void)suggestion;;-
47 return
executed 392 times by 1 test: return 1;
Executed by:
  • tst_selftests - unknown status
1;
executed 392 times by 1 test: return 1;
Executed by:
  • tst_selftests - unknown status
392
48}-
49-
50QTest::QBenchmarkMetric QBenchmarkEvent::metricType()-
51{-
52 return
executed 404 times by 1 test: return QTest::Events;
Executed by:
  • tst_selftests - unknown status
QTest::Events;
executed 404 times by 1 test: return QTest::Events;
Executed by:
  • tst_selftests - unknown status
404
53}-
54-
55-
56bool QBenchmarkEvent::nativeEventFilter(const QByteArray &eventType, void *message, long *result)-
57{-
58 (void)eventType;;-
59 (void)message;;-
60 (void)result;;-
61-
62 eventCounter++;-
63 return
executed 2641133 times by 1 test: return false;
Executed by:
  • tst_selftests - unknown status
false;
executed 2641133 times by 1 test: return false;
Executed by:
  • tst_selftests - unknown status
2641133
64}-
65-
66-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9