| 67 | } |
| 68 | |
| 69 | static void benchmarkResolveStackTrace() |
| 70 | { |
| 71 | if (!Execution::stackTracingAvailable()) |
| 72 | return; |
| 73 | const auto trace = Execution::stackTrace(255); |
| 74 | QVERIFY(trace.size() > 0); |
| 75 | QBENCHMARK |
| 76 | { |
| 77 | const auto frames = Execution::resolveAll(trace); |
| 78 | QCOMPARE(frames.size(), trace.size()); |
| 79 | } |
| 80 | } |
| 81 | }; |
| 82 | |
| 83 | QTEST_MAIN(ExecutionTest) |
| 84 | |
| 85 | #include "executiontest.moc" |
nothing calls this directly
no test coverage detected