Начало вопроса здесь.
http://www.linux.org.ru/view-message.jsp?msgid=2655553
Кратко суть: у некоторых товарищей данный код жрёт проц до 10%.
for(int i = 0; i < 10; ++i)
{
QTimer *timer = new QTimer(this);
timer->start(30+i);
}
После совещания с товарищами на http://prog.org.ru удалось найти временное решение данной проблемы: это присвоить переменной QT_NO_GLIB любое значение. Подробнее о назначении этой опции написано здесь: http://qtnode.net/wiki?title=GLib_Event_Loop
Ну и официальный ответ представителя троллтехов:
The Valgrind output did not indicate to me that Qt was doing anything
wrong here. It seems like almost all (~89%) of the time is spent inside
the g_main_context_iterate().
Even so, I was still unable to reproduce the 10% CPU load on any of the
machines I tried, even a single core 1.8 GHz Pentium M laptop.
I'm afraid there is nothing else we can do here. If you do not want the
performance hit on your computer, I suggest disabling GLib.
Regards,
--
Jason Barron, Support Engineer
Trolltech ASA, Oslo - http://www.trolltech.com
От себя замечу: обновил glibc и ядро, однако проблема осталась :(