MCPcopy Create free account
hub / github.com/KDE/kdevelop / benchDUChainBuilder

Method benchDUChainBuilder

plugins/clang/tests/bench_duchain.cpp:42–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void BenchDUChain::benchDUChainBuilder()
43{
44 QBENCHMARK_ONCE {
45 TestFile file(
46 "#include <vector>\n"
47 "#include <map>\n"
48 "#include <set>\n"
49 "#include <algorithm>\n"
50 "#include <functional>\n"
51 "#include <limits>\n"
52 "#include <bitset>\n"
53 "#include <iostream>\n"
54 "#include <string>\n"
55 "#include <mutex>\n", QStringLiteral("cpp"));
56 file.parse(TopDUContext::AllDeclarationsContextsAndUses);
57 QVERIFY(file.waitForParsed(60000));
58
59 DUChainReadLocker lock;
60 auto top = file.topContext();
61 QVERIFY(top);
62 }
63}
64
65QTEST_MAIN(BenchDUChain)

Callers

nothing calls this directly

Calls 4

fileFunction · 0.85
waitForParsedMethod · 0.80
parseMethod · 0.45
topContextMethod · 0.45

Tested by

no test coverage detected