| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/testlib/qbenchmarkmeasurement.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | void QBenchmarkTimeMeasurer::start() | - |
| 7 | { | - |
| 8 | time.start(); | - |
| 9 | } executed 16 times by 1 test: end of blockExecuted by:
| 16 |
| 10 | - | |
| 11 | qint64 QBenchmarkTimeMeasurer::checkpoint() | - |
| 12 | { | - |
| 13 | return never executed: time.elapsed();return time.elapsed();never executed: return time.elapsed(); | 0 |
| 14 | } | - |
| 15 | - | |
| 16 | qint64 QBenchmarkTimeMeasurer::stop() | - |
| 17 | { | - |
| 18 | return executed 16 times by 1 test: time.elapsed();return time.elapsed();Executed by:
executed 16 times by 1 test: return time.elapsed();Executed by:
| 16 |
| 19 | } | - |
| 20 | - | |
| 21 | bool QBenchmarkTimeMeasurer::isMeasurementAccepted(qint64 measurement) | - |
| 22 | { | - |
| 23 | return never executed: (measurement > 50);return (measurement > 50);never executed: return (measurement > 50); | 0 |
| 24 | } | - |
| 25 | - | |
| 26 | int QBenchmarkTimeMeasurer::adjustIterationCount(int suggestion) | - |
| 27 | { | - |
| 28 | return executed 126124 times by 502 tests: suggestion;return suggestion;Executed by:
executed 126124 times by 502 tests: return suggestion;Executed by:
| 126124 |
| 29 | } | - |
| 30 | - | |
| 31 | bool QBenchmarkTimeMeasurer::needsWarmupIteration() | - |
| 32 | { | - |
| 33 | return executed 126116 times by 502 tests: true;return true;Executed by:
executed 126116 times by 502 tests: return true;Executed by:
| 126116 |
| 34 | } | - |
| 35 | - | |
| 36 | int QBenchmarkTimeMeasurer::adjustMedianCount(int) | - |
| 37 | { | - |
| 38 | return executed 16 times by 1 test: 1;return 1;Executed by:
executed 16 times by 1 test: return 1;Executed by:
| 16 |
| 39 | } | - |
| 40 | - | |
| 41 | QTest::QBenchmarkMetric QBenchmarkTimeMeasurer::metricType() | - |
| 42 | { | - |
| 43 | return executed 16 times by 1 test: QTest::WalltimeMilliseconds;return QTest::WalltimeMilliseconds;Executed by:
executed 16 times by 1 test: return QTest::WalltimeMilliseconds;Executed by:
| 16 |
| 44 | } | - |
| 45 | - | |
| 46 | - | |
| 47 | - | |
| 48 | void QBenchmarkTickMeasurer::start() | - |
| 49 | { | - |
| 50 | startTicks = getticks(); | - |
| 51 | } never executed: end of block | 0 |
| 52 | - | |
| 53 | qint64 QBenchmarkTickMeasurer::checkpoint() | - |
| 54 | { | - |
| 55 | CycleCounterTicks now = getticks(); | - |
| 56 | return never executed: qRound64(elapsed(now, startTicks));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 never executed: qRound64(elapsed(now, startTicks));return qRound64(elapsed(now, startTicks));never executed: return qRound64(elapsed(now, startTicks)); | 0 |
| 63 | } | - |
| 64 | - | |
| 65 | bool QBenchmarkTickMeasurer::isMeasurementAccepted(qint64) | - |
| 66 | { | - |
| 67 | return never executed: true;return true;never executed: return true; | 0 |
| 68 | } | - |
| 69 | - | |
| 70 | int QBenchmarkTickMeasurer::adjustIterationCount(int) | - |
| 71 | { | - |
| 72 | return never executed: 1;return 1;never executed: return 1; | 0 |
| 73 | } | - |
| 74 | - | |
| 75 | int QBenchmarkTickMeasurer::adjustMedianCount(int) | - |
| 76 | { | - |
| 77 | return never executed: 1;return 1;never executed: return 1; | 0 |
| 78 | } | - |
| 79 | - | |
| 80 | bool QBenchmarkTickMeasurer::needsWarmupIteration() | - |
| 81 | { | - |
| 82 | return never executed: true;return true;never executed: return true; | 0 |
| 83 | } | - |
| 84 | - | |
| 85 | QTest::QBenchmarkMetric QBenchmarkTickMeasurer::metricType() | - |
| 86 | { | - |
| 87 | return never executed: QTest::CPUTicks;return QTest::CPUTicks;never executed: return QTest::CPUTicks; | 0 |
| 88 | } | - |
| 89 | - | |
| 90 | - | |
| 91 | - | |
| 92 | - | |
| 93 | - | |
| Switch to Source code | Preprocessed file |