aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/extensionsystem/pluginmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/extensionsystem/pluginmanager.cpp')
-rw-r--r--src/libs/extensionsystem/pluginmanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libs/extensionsystem/pluginmanager.cpp b/src/libs/extensionsystem/pluginmanager.cpp
index 5fa8b4a8cf..0f242ce1c1 100644
--- a/src/libs/extensionsystem/pluginmanager.cpp
+++ b/src/libs/extensionsystem/pluginmanager.cpp
@@ -957,6 +957,8 @@ void PluginManagerPrivate::nextDelayedInitialize()
m_isInitializationDone = true;
delete delayedInitializeTimer;
delayedInitializeTimer = nullptr;
+ if (m_profileTimer)
+ m_totalStartupMS = m_profileTimer->elapsed();
profilingSummary();
emit q->initializationDone();
#ifdef WITH_TESTS
@@ -1814,7 +1816,8 @@ void PluginManagerPrivate::profilingSummary() const
const qint64 t = s->performanceData().total();
qDebug("%-22s %8lldms ( %5.2f%% )", qPrintable(s->name()), t, 100.0 * t / total);
}
- qDebug("Total: %8lldms", total);
+ qDebug("Total plugins: %8lldms", total);
+ qDebug("Total startup: %8lldms", m_totalStartupMS);
Utils::Benchmarker::report("loadPlugins", "Total", total);
}
}