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

Method benchCodeModel

kdevplatform/language/duchain/tests/test_duchain.cpp:1032–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030#endif
1031
1032void TestDUChain::benchCodeModel()
1033{
1034 const IndexedString file("testFile");
1035
1036 QVERIFY(QTypeInfo<KDevelop::CodeModelItem>::isRelocatable);
1037
1038 int i = 0;
1039 QBENCHMARK {
1040 CodeModel::self().addItem(file, QualifiedIdentifier("testQID" + QString::number(i++)),
1041 KDevelop::CodeModelItem::Class);
1042 }
1043}
1044
1045void TestDUChain::benchTypeRegistry()
1046{

Callers

nothing calls this directly

Calls 2

QualifiedIdentifierClass · 0.50
addItemMethod · 0.45

Tested by

no test coverage detected