MCPcopy Create free account
hub / github.com/KDAB/GammaRay / benchmarkResolveStackTrace

Function benchmarkResolveStackTrace

tests/executiontest.cpp:69–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
83QTEST_MAIN(ExecutionTest)
84
85#include "executiontest.moc"

Callers

nothing calls this directly

Calls 2

stackTracingAvailableFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected