Line | Source Code | Coverage |
---|
1 | const char * QTest::benchmarkMetricName(QBenchmarkMetric metric) | - |
2 | { | - |
3 | switch (metric) { | - |
4 | case FramesPerSecond: | - |
5 | return "FramesPerSecond"; never executed: return "FramesPerSecond"; | 0 |
6 | case BitsPerSecond: | - |
7 | return "BitsPerSecond"; never executed: return "BitsPerSecond"; | 0 |
8 | case BytesPerSecond: | - |
9 | return "BytesPerSecond"; never executed: return "BytesPerSecond"; | 0 |
10 | case WalltimeMilliseconds: | - |
11 | return "WalltimeMilliseconds"; never executed: return "WalltimeMilliseconds"; | 0 |
12 | case CPUTicks: | - |
13 | return "CPUTicks"; never executed: return "CPUTicks"; | 0 |
14 | case InstructionReads: | - |
15 | return "InstructionReads"; never executed: return "InstructionReads"; | 0 |
16 | case Events: | - |
17 | return "Events"; never executed: return "Events"; | 0 |
18 | case WalltimeNanoseconds: | - |
19 | return "WalltimeNanoseconds"; never executed: return "WalltimeNanoseconds"; | 0 |
20 | case BytesAllocated: | - |
21 | return "BytesAllocated"; never executed: return "BytesAllocated"; | 0 |
22 | default: | - |
23 | return ""; never executed: return ""; | 0 |
24 | } | - |
25 | }; | 0 |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | const char * QTest::benchmarkMetricUnit(QBenchmarkMetric metric) | - |
33 | { | - |
34 | switch (metric) { | - |
35 | case FramesPerSecond: | - |
36 | return "fps"; never executed: return "fps"; | 0 |
37 | case BitsPerSecond: | - |
38 | return "bits/s"; never executed: return "bits/s"; | 0 |
39 | case BytesPerSecond: | - |
40 | return "bytes/s"; never executed: return "bytes/s"; | 0 |
41 | case WalltimeMilliseconds: | - |
42 | return "msecs"; executed: return "msecs"; Execution Count:8 | 8 |
43 | case CPUTicks: | - |
44 | return "CPU ticks"; never executed: return "CPU ticks"; | 0 |
45 | case InstructionReads: | - |
46 | return "instruction reads"; never executed: return "instruction reads"; | 0 |
47 | case Events: | - |
48 | return "events"; never executed: return "events"; | 0 |
49 | case WalltimeNanoseconds: | - |
50 | return "nsecs"; never executed: return "nsecs"; | 0 |
51 | case BytesAllocated: | - |
52 | return "bytes"; never executed: return "bytes"; | 0 |
53 | default: | - |
54 | return ""; never executed: return ""; | 0 |
55 | } | - |
56 | } | 0 |
57 | | - |
| | |