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

Method addBigTree

kdevplatform/project/tests/projectmodelperformancetest.cpp:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void ProjectModelPerformanceTest::addBigTree()
116{
117 QElapsedTimer timer;
118 timer.start();
119 for( int i = 0; i < BIG_WIDTH; i++ ) {
120 auto* item = new ProjectFolderItem( nullptr, Path( QUrl::fromLocalFile( QStringLiteral( "/f%1" ).arg( i ) ) ) );
121 generateChilds( item, BIG_WIDTH, BIG_DEPTH );
122 model->appendRow( item );
123 }
124 qDebug() << "addBigTree" << timer.elapsed();
125}
126
127void ProjectModelPerformanceTest::addBigTreeDelayed()
128{

Callers

nothing calls this directly

Calls 5

generateChildsFunction · 0.85
appendRowMethod · 0.80
elapsedMethod · 0.80
PathClass · 0.50
startMethod · 0.45

Tested by

no test coverage detected