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

Method addSmallTree

kdevplatform/project/tests/projectmodelperformancetest.cpp:170–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void ProjectModelPerformanceTest::addSmallTree()
171{
172 QElapsedTimer timer;
173 timer.start();
174 for( int i = 0; i < SMALL_WIDTH; i++ ) {
175 auto* item = new ProjectFolderItem( nullptr, Path(QUrl::fromLocalFile( QStringLiteral( "/f%1" ).arg( i ) )) );
176 generateChilds( item, SMALL_WIDTH, SMALL_DEPTH );
177 model->appendRow( item );
178 }
179 qDebug() << "addSmallTree" << timer.elapsed();
180}
181
182int main( int argc, char** argv )
183{

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