[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - vcl/headless
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Tue May 18 09:17:59 UTC 2021
vcl/headless/svpinst.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 150d0d88b1eeafe7662acd958ec248f0d91d5ce6
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri May 14 13:37:09 2021 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Tue May 18 11:17:27 2021 +0200
Add a ProfileZone around the mpPollCallback invocation
As requested by mmeeks.
Change-Id: I71531b77d774eefb092570e214d54269f44881a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115596
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tor Lillqvist <tml at collabora.com>
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index 303ee40f4da7..4694a9e4bff4 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -59,6 +59,7 @@
// FIXME: remove when we re-work the svp mainloop
#include <unx/salunxtime.h>
#include <comphelper/lok.hxx>
+#include <comphelper/profilezone.hxx>
SvpSalInstance* SvpSalInstance::s_pDefaultInstance = nullptr;
@@ -483,6 +484,8 @@ bool SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents)
if (pSVData->mpPollCallback)
{
+ comphelper::ProfileZone("mpPollCallback invocation");
+
// Poll for events from the LOK client.
if (nTimeoutMicroS < 0)
nTimeoutMicroS = 5000 * 1000;
More information about the Libreoffice-commits
mailing list