qbenchmarkmeasurement.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/testlib/qbenchmarkmeasurement.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6void QBenchmarkTimeMeasurer::start()-
7{-
8 time.start();-
9}
executed 16 times by 1 test: end of block
Executed by:
  • tst_QByteDataBuffer
16
10-
11qint64 QBenchmarkTimeMeasurer::checkpoint()-
12{-
13 return
never executed: return time.elapsed();
time.elapsed();
never executed: return time.elapsed();
0
14}-
15-
16qint64 QBenchmarkTimeMeasurer::stop()-
17{-
18 return
executed 16 times by 1 test: return time.elapsed();
Executed by:
  • tst_QByteDataBuffer
time.elapsed();
executed 16 times by 1 test: return time.elapsed();
Executed by:
  • tst_QByteDataBuffer
16
19}-
20-
21bool QBenchmarkTimeMeasurer::isMeasurementAccepted(qint64 measurement)-
22{-
23 return
never executed: return (measurement > 50);
(measurement > 50);
never executed: return (measurement > 50);
0
24}-
25-
26int QBenchmarkTimeMeasurer::adjustIterationCount(int suggestion)-
27{-
28 return
executed 126124 times by 502 tests: return suggestion;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
suggestion;
executed 126124 times by 502 tests: return suggestion;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126124
29}-
30-
31bool QBenchmarkTimeMeasurer::needsWarmupIteration()-
32{-
33 return
executed 126116 times by 502 tests: return true;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
true;
executed 126116 times by 502 tests: return true;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
126116
34}-
35-
36int QBenchmarkTimeMeasurer::adjustMedianCount(int)-
37{-
38 return
executed 16 times by 1 test: return 1;
Executed by:
  • tst_QByteDataBuffer
1;
executed 16 times by 1 test: return 1;
Executed by:
  • tst_QByteDataBuffer
16
39}-
40-
41QTest::QBenchmarkMetric QBenchmarkTimeMeasurer::metricType()-
42{-
43 return
executed 16 times by 1 test: return QTest::WalltimeMilliseconds;
Executed by:
  • tst_QByteDataBuffer
QTest::WalltimeMilliseconds;
executed 16 times by 1 test: return QTest::WalltimeMilliseconds;
Executed by:
  • tst_QByteDataBuffer
16
44}-
45-
46-
47-
48void QBenchmarkTickMeasurer::start()-
49{-
50 startTicks = getticks();-
51}
never executed: end of block
0
52-
53qint64 QBenchmarkTickMeasurer::checkpoint()-
54{-
55 CycleCounterTicks now = getticks();-
56 return
never executed: return qRound64(elapsed(now, startTicks));
qRound64(elapsed(now, startTicks));
never executed: return qRound64(elapsed(now, startTicks));
0
57}-
58-
59qint64 QBenchmarkTickMeasurer::stop()-
60{-
61 CycleCounterTicks now = getticks();-
62 return
never executed: return qRound64(elapsed(now, startTicks));
qRound64(elapsed(now, startTicks));
never executed: return qRound64(elapsed(now, startTicks));
0
63}-
64-
65bool QBenchmarkTickMeasurer::isMeasurementAccepted(qint64)-
66{-
67 return
never executed: return true;
true;
never executed: return true;
0
68}-
69-
70int QBenchmarkTickMeasurer::adjustIterationCount(int)-
71{-
72 return
never executed: return 1;
1;
never executed: return 1;
0
73}-
74-
75int QBenchmarkTickMeasurer::adjustMedianCount(int)-
76{-
77 return
never executed: return 1;
1;
never executed: return 1;
0
78}-
79-
80bool QBenchmarkTickMeasurer::needsWarmupIteration()-
81{-
82 return
never executed: return true;
true;
never executed: return true;
0
83}-
84-
85QTest::QBenchmarkMetric QBenchmarkTickMeasurer::metricType()-
86{-
87 return
never executed: return QTest::CPUTicks;
QTest::CPUTicks;
never executed: return QTest::CPUTicks;
0
88}-
89-
90-
91-
92-
93-
Switch to Source codePreprocessed file

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