diff options
author | Tor Lillqvist <tml@collabora.com> | 2021-05-14 13:37:09 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2021-05-18 11:17:27 +0200 |
commit | 150d0d88b1eeafe7662acd958ec248f0d91d5ce6 (patch) | |
tree | fe1aebaff71cb738062c5f364c5ee83c51bfa2d2 | |
parent | 1e0ee8141207a425b56592c136ac5e94fc821173 (diff) |
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@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r-- | vcl/headless/svpinst.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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; |