diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-08-02 15:11:21 -0400 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-08-02 22:36:08 +0200 |
commit | c7a86aa54bc4357a82a7fb584cbc5e6606b9e2c0 (patch) | |
tree | adab35b0f8d7e1180c43807043e55094f4ca8943 /desktop | |
parent | 6d1bf3d1bde72b2cbc2d867dd6ff566b3c4e1ca6 (diff) |
clipboard: add profile zones.
Change-Id: I2c005e78884fbe35c3045f76c203a7a369e97646
Reviewed-on: https://gerrit.libreoffice.org/76885
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index f17251c70bf5..e1640836bf3c 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3611,6 +3611,8 @@ static char* doc_getTextSelection(LibreOfficeKitDocument* pThis, const char* pMi static int doc_getSelectionType(LibreOfficeKitDocument* pThis) { + comphelper::ProfileZone aZone("doc_getSelectionType"); + SolarMutexGuard aGuard; SetLastExceptionMsg(); @@ -3649,6 +3651,8 @@ static int doc_getClipboard(LibreOfficeKitDocument* pThis, size_t **pOutSizes, char ***pOutStreams) { + comphelper::ProfileZone aZone("doc_getClipboard"); + SolarMutexGuard aGuard; SetLastExceptionMsg(); @@ -3731,7 +3735,7 @@ static int doc_setClipboard(LibreOfficeKitDocument* pThis, const size_t *pInSizes, const char **pInStreams) { - comphelper::ProfileZone aZone("doc_paste"); + comphelper::ProfileZone aZone("doc_setClipboard"); SolarMutexGuard aGuard; SetLastExceptionMsg(); @@ -3761,6 +3765,8 @@ static int doc_setClipboard(LibreOfficeKitDocument* pThis, static bool doc_paste(LibreOfficeKitDocument* pThis, const char* pMimeType, const char* pData, size_t nSize) { + comphelper::ProfileZone aZone("doc_paste"); + SolarMutexGuard aGuard; const char *pInMimeTypes[1]; |