qbenchmarkevent.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4QBenchmarkEvent::QBenchmarkEvent() -
5 : eventCounter(0) -
6{ -
7}
never executed: }
0
8 -
9QBenchmarkEvent::~QBenchmarkEvent() -
10{ -
11} -
12 -
13void QBenchmarkEvent::start() -
14{ -
15 eventCounter = 0; -
16 QAbstractEventDispatcher::instance()->installNativeEventFilter(this); -
17}
never executed: }
0
18 -
19qint64 QBenchmarkEvent::checkpoint() -
20{ -
21 return eventCounter;
never executed: return eventCounter;
0
22} -
23 -
24qint64 QBenchmarkEvent::stop() -
25{ -
26 QAbstractEventDispatcher::instance()->removeNativeEventFilter(this); -
27 return eventCounter;
never executed: return eventCounter;
0
28} -
29 -
30 -
31 -
32 -
33bool QBenchmarkEvent::isMeasurementAccepted(qint64 measurement) -
34{ -
35 (void)measurement;; -
36 return true;
never executed: return true;
0
37} -
38 -
39int QBenchmarkEvent::adjustIterationCount(int suggestion) -
40{ -
41 return suggestion;
never executed: return suggestion;
0
42} -
43 -
44int QBenchmarkEvent::adjustMedianCount(int suggestion) -
45{ -
46 (void)suggestion;; -
47 return 1;
never executed: return 1;
0
48} -
49 -
50QTest::QBenchmarkMetric QBenchmarkEvent::metricType() -
51{ -
52 return QTest::Events;
never executed: return QTest::Events;
0
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 false;
never executed: return false;
0
64} -
65 -
66 -
67 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial