I began debugging the different phases of a test programm, which does show only a window with a red rectangle in the middle. The programm is normally startet with the commandline:
/bin/test -qws -display LinuxFB
which takes about 25 secs to show this rect.
I changed the main(..) to this:
int main(....)
{
printf("Begin qapp\n");
printf("Begin mainwindow\n");
MyMainWindow w;
printf("Begin qdebug\n");
qDebug() << "test";
printf("Begin mainwindow show\n");
w.show();
printf("End Init\n");
return a.exec();
}
int main(....)
{
printf("Begin qapp\n");
QApplication a(argc,argv);
printf("Begin mainwindow\n");
MyMainWindow w;
printf("Begin qdebug\n");
qDebug() << "test";
printf("Begin mainwindow show\n");
w.show();
printf("End Init\n");
return a.exec();
}
To copy to clipboard, switch view to plain text mode
I start the app with
$> LD_DEBUG=all /bin/colortest -qws -display LinuxFB
and I see that the longest delay (about 90 % of the startup time) ocuurs at the init of QApplication (the construction of the qapp object).
Any ideas how I can find the, what causes the delay in this constructor ?
Bookmarks