qbenchmarkmetric.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/testlib/qbenchmarkmetric.cpp
Switch to Source codePreprocessed file
LineSourceCount
1const char * QTest::benchmarkMetricName(QBenchmarkMetric metric)-
2{-
3 switch (metric) {-
4 case
never executed: case FramesPerSecond:
FramesPerSecond:
never executed: case FramesPerSecond:
0
5 return
never executed: return "FramesPerSecond";
"FramesPerSecond";
never executed: return "FramesPerSecond";
0
6 case
never executed: case BitsPerSecond:
BitsPerSecond:
never executed: case BitsPerSecond:
0
7 return
never executed: return "BitsPerSecond";
"BitsPerSecond";
never executed: return "BitsPerSecond";
0
8 case
never executed: case BytesPerSecond:
BytesPerSecond:
never executed: case BytesPerSecond:
0
9 return
never executed: return "BytesPerSecond";
"BytesPerSecond";
never executed: return "BytesPerSecond";
0
10 case
never executed: case WalltimeMilliseconds:
WalltimeMilliseconds:
never executed: case WalltimeMilliseconds:
0
11 return
never executed: return "WalltimeMilliseconds";
"WalltimeMilliseconds";
never executed: return "WalltimeMilliseconds";
0
12 case
executed 240 times by 1 test: case Events:
Executed by:
  • tst_selftests - unknown status
Events:
executed 240 times by 1 test: case Events:
Executed by:
  • tst_selftests - unknown status
240
13 return
executed 240 times by 1 test: return "Events";
Executed by:
  • tst_selftests - unknown status
"Events";
executed 240 times by 1 test: return "Events";
Executed by:
  • tst_selftests - unknown status
240
14 case
never executed: case CPUTicks:
CPUTicks:
never executed: case CPUTicks:
0
15 return
never executed: return "CPUTicks";
"CPUTicks";
never executed: return "CPUTicks";
0
16 case
never executed: case CPUMigrations:
CPUMigrations:
never executed: case CPUMigrations:
0
17 return
never executed: return "CPUMigrations";
"CPUMigrations";
never executed: return "CPUMigrations";
0
18 case
never executed: case CPUCycles:
CPUCycles:
never executed: case CPUCycles:
0
19 return
never executed: return "CPUCycles";
"CPUCycles";
never executed: return "CPUCycles";
0
20 case
never executed: case BusCycles:
BusCycles:
never executed: case BusCycles:
0
21 return
never executed: return "BusCycles";
"BusCycles";
never executed: return "BusCycles";
0
22 case
never executed: case StalledCycles:
StalledCycles:
never executed: case StalledCycles:
0
23 return
never executed: return "StalledCycles";
"StalledCycles";
never executed: return "StalledCycles";
0
24 case
never executed: case InstructionReads:
InstructionReads:
never executed: case InstructionReads:
0
25 return
never executed: return "InstructionReads";
"InstructionReads";
never executed: return "InstructionReads";
0
26 case
never executed: case Instructions:
Instructions:
never executed: case Instructions:
0
27 return
never executed: return "Instructions";
"Instructions";
never executed: return "Instructions";
0
28 case
never executed: case WalltimeNanoseconds:
WalltimeNanoseconds:
never executed: case WalltimeNanoseconds:
0
29 return
never executed: return "WalltimeNanoseconds";
"WalltimeNanoseconds";
never executed: return "WalltimeNanoseconds";
0
30 case
never executed: case BytesAllocated:
BytesAllocated:
never executed: case BytesAllocated:
0
31 return
never executed: return "BytesAllocated";
"BytesAllocated";
never executed: return "BytesAllocated";
0
32 case
never executed: case BranchInstructions:
BranchInstructions:
never executed: case BranchInstructions:
0
33 return
never executed: return "BranchInstructions";
"BranchInstructions";
never executed: return "BranchInstructions";
0
34 case
never executed: case BranchMisses:
BranchMisses:
never executed: case BranchMisses:
0
35 return
never executed: return "BranchMisses";
"BranchMisses";
never executed: return "BranchMisses";
0
36 case
never executed: case CacheReferences:
CacheReferences:
never executed: case CacheReferences:
0
37 return
never executed: return "CacheReferences";
"CacheReferences";
never executed: return "CacheReferences";
0
38 case
never executed: case CacheReads:
CacheReads:
never executed: case CacheReads:
0
39 return
never executed: return "CacheReads";
"CacheReads";
never executed: return "CacheReads";
0
40 case
never executed: case CacheWrites:
CacheWrites:
never executed: case CacheWrites:
0
41 return
never executed: return "CacheWrites";
"CacheWrites";
never executed: return "CacheWrites";
0
42 case
never executed: case CachePrefetches:
CachePrefetches:
never executed: case CachePrefetches:
0
43 return
never executed: return "CachePrefetches";
"CachePrefetches";
never executed: return "CachePrefetches";
0
44 case
never executed: case CacheMisses:
CacheMisses:
never executed: case CacheMisses:
0
45 return
never executed: return "CacheMisses";
"CacheMisses";
never executed: return "CacheMisses";
0
46 case
never executed: case CacheReadMisses:
CacheReadMisses:
never executed: case CacheReadMisses:
0
47 return
never executed: return "CacheReadMisses";
"CacheReadMisses";
never executed: return "CacheReadMisses";
0
48 case
never executed: case CacheWriteMisses:
CacheWriteMisses:
never executed: case CacheWriteMisses:
0
49 return
never executed: return "CacheWriteMisses";
"CacheWriteMisses";
never executed: return "CacheWriteMisses";
0
50 case
never executed: case CachePrefetchMisses:
CachePrefetchMisses:
never executed: case CachePrefetchMisses:
0
51 return
never executed: return "CachePrefetchMisses";
"CachePrefetchMisses";
never executed: return "CachePrefetchMisses";
0
52 case
never executed: case ContextSwitches:
ContextSwitches:
never executed: case ContextSwitches:
0
53 return
never executed: return "ContextSwitches";
"ContextSwitches";
never executed: return "ContextSwitches";
0
54 case
never executed: case PageFaults:
PageFaults:
never executed: case PageFaults:
0
55 return
never executed: return "PageFaults";
"PageFaults";
never executed: return "PageFaults";
0
56 case
never executed: case MinorPageFaults:
MinorPageFaults:
never executed: case MinorPageFaults:
0
57 return
never executed: return "MinorPageFaults";
"MinorPageFaults";
never executed: return "MinorPageFaults";
0
58 case
never executed: case MajorPageFaults:
MajorPageFaults:
never executed: case MajorPageFaults:
0
59 return
never executed: return "MajorPageFaults";
"MajorPageFaults";
never executed: return "MajorPageFaults";
0
60 case
never executed: case AlignmentFaults:
AlignmentFaults:
never executed: case AlignmentFaults:
0
61 return
never executed: return "AlignmentFaults";
"AlignmentFaults";
never executed: return "AlignmentFaults";
0
62 case
never executed: case EmulationFaults:
EmulationFaults:
never executed: case EmulationFaults:
0
63 return
never executed: return "EmulationFaults";
"EmulationFaults";
never executed: return "EmulationFaults";
0
64 default
never executed: default:
:
never executed: default:
0
65 return
never executed: return "";
"";
never executed: return "";
0
66 }-
67};-
68-
69-
70-
71-
72-
73const char * QTest::benchmarkMetricUnit(QBenchmarkMetric metric)-
74{-
75 switch (metric) {-
76 case
never executed: case FramesPerSecond:
FramesPerSecond:
never executed: case FramesPerSecond:
0
77 return
never executed: return "fps";
"fps";
never executed: return "fps";
0
78 case
never executed: case BitsPerSecond:
BitsPerSecond:
never executed: case BitsPerSecond:
0
79 return
never executed: return "bits/s";
"bits/s";
never executed: return "bits/s";
0
80 case
never executed: case BytesPerSecond:
BytesPerSecond:
never executed: case BytesPerSecond:
0
81 return
never executed: return "bytes/s";
"bytes/s";
never executed: return "bytes/s";
0
82 case
executed 8 times by 1 test: case WalltimeMilliseconds:
Executed by:
  • tst_QByteDataBuffer
WalltimeMilliseconds:
executed 8 times by 1 test: case WalltimeMilliseconds:
Executed by:
  • tst_QByteDataBuffer
8
83 return
executed 8 times by 1 test: return "msecs";
Executed by:
  • tst_QByteDataBuffer
"msecs";
executed 8 times by 1 test: return "msecs";
Executed by:
  • tst_QByteDataBuffer
8
84 case
executed 86 times by 1 test: case Events:
Executed by:
  • tst_selftests - unknown status
Events:
executed 86 times by 1 test: case Events:
Executed by:
  • tst_selftests - unknown status
86
85 return
executed 86 times by 1 test: return "events";
Executed by:
  • tst_selftests - unknown status
"events";
executed 86 times by 1 test: return "events";
Executed by:
  • tst_selftests - unknown status
86
86 case
never executed: case CPUTicks:
CPUTicks:
never executed: case CPUTicks:
0
87 return
never executed: return "CPU ticks";
"CPU ticks";
never executed: return "CPU ticks";
0
88 case
never executed: case CPUMigrations:
CPUMigrations:
never executed: case CPUMigrations:
0
89 return
never executed: return "CPU migrations";
"CPU migrations";
never executed: return "CPU migrations";
0
90 case
never executed: case CPUCycles:
CPUCycles:
never executed: case CPUCycles:
0
91 return
never executed: return "CPU cycles";
"CPU cycles";
never executed: return "CPU cycles";
0
92 case
never executed: case BusCycles:
BusCycles:
never executed: case BusCycles:
0
93 return
never executed: return "bus cycles";
"bus cycles";
never executed: return "bus cycles";
0
94 case
never executed: case StalledCycles:
StalledCycles:
never executed: case StalledCycles:
0
95 return
never executed: return "stalled cycles";
"stalled cycles";
never executed: return "stalled cycles";
0
96 case
never executed: case InstructionReads:
InstructionReads:
never executed: case InstructionReads:
0
97 return
never executed: return "instruction reads";
"instruction reads";
never executed: return "instruction reads";
0
98 case
never executed: case Instructions:
Instructions:
never executed: case Instructions:
0
99 return
never executed: return "instructions";
"instructions";
never executed: return "instructions";
0
100 case
never executed: case WalltimeNanoseconds:
WalltimeNanoseconds:
never executed: case WalltimeNanoseconds:
0
101 return
never executed: return "nsecs";
"nsecs";
never executed: return "nsecs";
0
102 case
never executed: case BytesAllocated:
BytesAllocated:
never executed: case BytesAllocated:
0
103 return
never executed: return "bytes";
"bytes";
never executed: return "bytes";
0
104 case
never executed: case BranchInstructions:
BranchInstructions:
never executed: case BranchInstructions:
0
105 return
never executed: return "branch instructions";
"branch instructions";
never executed: return "branch instructions";
0
106 case
never executed: case BranchMisses:
BranchMisses:
never executed: case BranchMisses:
0
107 return
never executed: return "branch misses";
"branch misses";
never executed: return "branch misses";
0
108 case
never executed: case CacheReferences:
CacheReferences:
never executed: case CacheReferences:
0
109 return
never executed: return "cache references";
"cache references";
never executed: return "cache references";
0
110 case
never executed: case CacheReads:
CacheReads:
never executed: case CacheReads:
0
111 return
never executed: return "cache loads";
"cache loads";
never executed: return "cache loads";
0
112 case
never executed: case CacheWrites:
CacheWrites:
never executed: case CacheWrites:
0
113 return
never executed: return "cache stores";
"cache stores";
never executed: return "cache stores";
0
114 case
never executed: case CachePrefetches:
CachePrefetches:
never executed: case CachePrefetches:
0
115 return
never executed: return "cache prefetches";
"cache prefetches";
never executed: return "cache prefetches";
0
116 case
never executed: case CacheMisses:
CacheMisses:
never executed: case CacheMisses:
0
117 return
never executed: return "cache misses";
"cache misses";
never executed: return "cache misses";
0
118 case
never executed: case CacheReadMisses:
CacheReadMisses:
never executed: case CacheReadMisses:
0
119 return
never executed: return "cache load misses";
"cache load misses";
never executed: return "cache load misses";
0
120 case
never executed: case CacheWriteMisses:
CacheWriteMisses:
never executed: case CacheWriteMisses:
0
121 return
never executed: return "cache store misses";
"cache store misses";
never executed: return "cache store misses";
0
122 case
never executed: case CachePrefetchMisses:
CachePrefetchMisses:
never executed: case CachePrefetchMisses:
0
123 return
never executed: return "cache prefetch misses";
"cache prefetch misses";
never executed: return "cache prefetch misses";
0
124 case
never executed: case ContextSwitches:
ContextSwitches:
never executed: case ContextSwitches:
0
125 return
never executed: return "context switches";
"context switches";
never executed: return "context switches";
0
126 case
never executed: case PageFaults:
PageFaults:
never executed: case PageFaults:
0
127 return
never executed: return "page faults";
"page faults";
never executed: return "page faults";
0
128 case
never executed: case MinorPageFaults:
MinorPageFaults:
never executed: case MinorPageFaults:
0
129 return
never executed: return "minor page faults";
"minor page faults";
never executed: return "minor page faults";
0
130 case
never executed: case MajorPageFaults:
MajorPageFaults:
never executed: case MajorPageFaults:
0
131 return
never executed: return "major page faults";
"major page faults";
never executed: return "major page faults";
0
132 case
never executed: case AlignmentFaults:
AlignmentFaults:
never executed: case AlignmentFaults:
0
133 return
never executed: return "alignment faults";
"alignment faults";
never executed: return "alignment faults";
0
134 case
never executed: case EmulationFaults:
EmulationFaults:
never executed: case EmulationFaults:
0
135 return
never executed: return "emulation faults";
"emulation faults";
never executed: return "emulation faults";
0
136 default
never executed: default:
:
never executed: default:
0
137 return
never executed: return "";
"";
never executed: return "";
0
138 }-
139}-
Switch to Source codePreprocessed file

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