[Libreoffice-commits] online.git: kit/Kit.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Wed Apr 5 04:45:22 UTC 2017


 kit/Kit.cpp |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit fa753e5e0657b230526e71477a9fcdb16f91f4a6
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Tue Apr 4 21:30:29 2017 -0400

    wsd: time lok_preinit and log when finished
    
    Change-Id: I2ea3dc226c84870690bbf9b041263650c923d5bd
    Reviewed-on: https://gerrit.libreoffice.org/36112
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index 40a9a2df..d770a9bc 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -1956,13 +1956,17 @@ bool globalPreinit(const std::string &loTemplate)
         LOG_FTL("No libreofficekit_hook_2 symbol in " << loadedLibrary << ": " << dlerror());
     }
 
-    LOG_TRC("lok_preinit(" << loTemplate << "/program\", \"file:///user\")");
+    LOG_TRC("Invoking lok_preinit(" << loTemplate << "/program\", \"file:///user\")");
+    const auto start = std::chrono::steady_clock::now();
     if (preInit((loTemplate + "/program").c_str(), "file:///user") != 0)
     {
         LOG_FTL("lok_preinit() in " << loadedLibrary << " failed");
         return false;
     }
 
+    LOG_TRC("Finished lok_preinit(" << loTemplate << "/program\", \"file:///user\") in " <<
+            std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now() - start).count() <<
+            " ms.");
     return true;
 }
 


More information about the Libreoffice-commits mailing list