From 75cd8b3bab3e4d094565748215013ee78c9962d9 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Tue, 18 Feb 2020 18:09:03 -0500 Subject: added more timings missed fileregisterfwd.h in cmake list --- src/main.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 105299a8..8813aaa7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -506,6 +506,8 @@ static QString getVersionDisplayString() int runApplication(MOApplication &application, SingleInstance &instance, const QString &splashPath) { + TimeThis tt("runApplication() to exec()"); + log::info( "starting Mod Organizer version {} revision {} in {}, usvfs: {}", getVersionDisplayString(), GITID, QCoreApplication::applicationDirPath(), @@ -703,7 +705,7 @@ int runApplication(MOApplication &application, SingleInstance &instance, } QPixmap pixmap; - + QSplashScreen splash(nullptr); if (useSplash) { @@ -748,13 +750,15 @@ int runApplication(MOApplication &application, SingleInstance &instance, log::debug("displaying main window"); mainWindow.show(); mainWindow.activateWindow(); - + if (useSplash) { // don't pass mainwindow as it just waits half a second for it // instead of proceding splash.finish(nullptr); } + tt.stop(); + res = application.exec(); mainWindow.close(); @@ -855,6 +859,8 @@ void initLogging() int main(int argc, char *argv[]) { + TimeThis tt("main to runApplication()"); + // handle --crashdump first for (int i=1; i