Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/testlib/qbenchmarkevent.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | QBenchmarkEvent::QBenchmarkEvent() | - |
5 | : eventCounter(0) | - |
6 | { | - |
7 | } executed 73 times by 1 test: end of block Executed by:
| 73 |
8 | - | |
9 | QBenchmarkEvent::~QBenchmarkEvent() | - |
10 | { | - |
11 | } | - |
12 | - | |
13 | void QBenchmarkEvent::start() | - |
14 | { | - |
15 | eventCounter = 0; | - |
16 | QAbstractEventDispatcher::instance()->installNativeEventFilter(this); | - |
17 | } executed 404 times by 1 test: end of block Executed by:
| 404 |
18 | - | |
19 | qint64 QBenchmarkEvent::checkpoint() | - |
20 | { | - |
21 | return never executed: eventCounter;return eventCounter; never executed: return eventCounter; | 0 |
22 | } | - |
23 | - | |
24 | qint64 QBenchmarkEvent::stop() | - |
25 | { | - |
26 | QAbstractEventDispatcher::instance()->removeNativeEventFilter(this); | - |
27 | return executed 404 times by 1 test: eventCounter;return eventCounter; Executed by:
executed 404 times by 1 test: return eventCounter; Executed by:
| 404 |
28 | } | - |
29 | - | |
30 | - | |
31 | - | |
32 | - | |
33 | bool QBenchmarkEvent::isMeasurementAccepted(qint64 measurement) | - |
34 | { | - |
35 | (void)measurement;; | - |
36 | return executed 252 times by 1 test: true;return true; Executed by:
executed 252 times by 1 test: return true; Executed by:
| 252 |
37 | } | - |
38 | - | |
39 | int QBenchmarkEvent::adjustIterationCount(int suggestion) | - |
40 | { | - |
41 | return executed 254 times by 1 test: suggestion;return suggestion; Executed by:
executed 254 times by 1 test: return suggestion; Executed by:
| 254 |
42 | } | - |
43 | - | |
44 | int QBenchmarkEvent::adjustMedianCount(int suggestion) | - |
45 | { | - |
46 | (void)suggestion;; | - |
47 | return executed 392 times by 1 test: 1;return 1; Executed by:
executed 392 times by 1 test: return 1; Executed by:
| 392 |
48 | } | - |
49 | - | |
50 | QTest::QBenchmarkMetric QBenchmarkEvent::metricType() | - |
51 | { | - |
52 | return executed 404 times by 1 test: QTest::Events;return QTest::Events; Executed by:
executed 404 times by 1 test: return QTest::Events; Executed by:
| 404 |
53 | } | - |
54 | - | |
55 | - | |
56 | bool 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: false;return false; Executed by:
executed 2641133 times by 1 test: return false; Executed by:
| 2641133 |
64 | } | - |
65 | - | |
66 | - | |
Switch to Source code | Preprocessed file |