[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - kit/Kit.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Thu Apr 6 01:21:28 UTC 2017
kit/Kit.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit ba595a98e6c818051c0938ba14abbe21a14e4ecb
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>
(cherry picked from commit fa753e5e0657b230526e71477a9fcdb16f91f4a6)
Reviewed-on: https://gerrit.libreoffice.org/36121
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