added debug output to measure kde startup time
svn path=/trunk/KDE/kdelibs/; revision=1083186
This commit is contained in:
parent
6086b03de5
commit
cc7c0a3359
|
@ -270,6 +270,7 @@ Corona::Corona(QObject *parent)
|
||||||
: QGraphicsScene(parent),
|
: QGraphicsScene(parent),
|
||||||
d(new CoronaPrivate(this))
|
d(new CoronaPrivate(this))
|
||||||
{
|
{
|
||||||
|
kDebug() << "!!{} STARTUP TIME" << QTime().msecsTo(QTime::currentTime()) << "Corona ctor start";
|
||||||
d->init();
|
d->init();
|
||||||
ToolTipManager::self()->m_corona = this;
|
ToolTipManager::self()->m_corona = this;
|
||||||
//setViewport(new QGLWidget(QGLFormat(QGL::StencilBuffer | QGL::AlphaChannel)));
|
//setViewport(new QGLWidget(QGLFormat(QGL::StencilBuffer | QGL::AlphaChannel)));
|
||||||
|
@ -403,6 +404,7 @@ void Corona::loadLayout(const QString &configName)
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (Containment *containment, d->containments) {
|
foreach (Containment *containment, d->containments) {
|
||||||
|
|
||||||
QString cid = QString::number(containment->id());
|
QString cid = QString::number(containment->id());
|
||||||
KConfigGroup *appletsConfigGroup = 0;
|
KConfigGroup *appletsConfigGroup = 0;
|
||||||
if (mergeConfig) {
|
if (mergeConfig) {
|
||||||
|
@ -419,12 +421,14 @@ void Corona::loadLayout(const QString &configName)
|
||||||
applet->init();
|
applet->init();
|
||||||
// We have to flush the applet constraints manually
|
// We have to flush the applet constraints manually
|
||||||
applet->flushPendingConstraintsEvents();
|
applet->flushPendingConstraintsEvents();
|
||||||
|
kDebug() << "!!{} STARTUP TIME" << QTime().msecsTo(QTime::currentTime()) << "Applet" << applet->name();
|
||||||
}
|
}
|
||||||
|
|
||||||
delete appletsConfigGroup;
|
delete appletsConfigGroup;
|
||||||
containment->updateConstraints(Plasma::StartupCompletedConstraint);
|
containment->updateConstraints(Plasma::StartupCompletedConstraint);
|
||||||
containment->flushPendingConstraintsEvents();
|
containment->flushPendingConstraintsEvents();
|
||||||
emit containmentAdded(containment);
|
emit containmentAdded(containment);
|
||||||
|
kDebug() << "!!{} STARTUP TIME" << QTime().msecsTo(QTime::currentTime()) << "Containment" << containment->name();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user