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