kit/Kit.cpp | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit fa753e5e0657b230526e71477a9fcdb16f91f4a6
Author: Ashod Nakashian <[email protected]>
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 <[email protected]>
Tested-by: Ashod Nakashian <[email protected]>
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;
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits