From 08f6f9dded1b142b858c455da03319abac691655 Mon Sep 17 00:00:00 2001 From: László Németh Date: Thu, 30 Mar 2017 14:25:40 +0200 Subject: Profiling API: add ProfileZones Change-Id: Ie5669bd75d9b4be047d98402cb69ac313ab618df Reviewed-on: https://gerrit.libreoffice.org/38787 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- sw/source/core/unocore/unodraw.cxx | 3 +++ sw/source/core/unocore/unoobj.cxx | 3 +++ sw/source/core/unocore/unotext.cxx | 4 ++++ sw/source/uibase/uno/unotxvw.cxx | 6 ++++++ 4 files changed, 16 insertions(+) (limited to 'sw') diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index 81e9831d1125..70cec6decfbd 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -59,6 +59,7 @@ #include #include #include +#include #include #include #include @@ -2338,6 +2339,8 @@ awt::Size SAL_CALL SwXShape::getSize() void SAL_CALL SwXShape::setSize( const awt::Size& aSize ) { + ::comphelper::ProfileZone aZone("SwXShape::setSize"); + if ( mxShape.is() ) { mxShape->setSize( aSize ); diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx index 7983e3c1a9d5..d2723423f23d 100644 --- a/sw/source/core/unocore/unoobj.cxx +++ b/sw/source/core/unocore/unoobj.cxx @@ -106,6 +106,7 @@ #include #include #include +#include using namespace ::com::sun::star; @@ -963,6 +964,7 @@ void SAL_CALL SwXTextCursor::gotoStart(sal_Bool Expand) { SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("gotoStart"); SwUnoCursor & rUnoCursor( m_pImpl->GetCursorOrThrow() ); @@ -1019,6 +1021,7 @@ void SAL_CALL SwXTextCursor::gotoEnd(sal_Bool Expand) { SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("gotoEnd"); SwUnoCursor & rUnoCursor( m_pImpl->GetCursorOrThrow() ); diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx index d166bba9ad6c..51536228f60a 100644 --- a/sw/source/core/unocore/unotext.cxx +++ b/sw/source/core/unocore/unotext.cxx @@ -32,6 +32,7 @@ #include #include +#include #include #include #include @@ -284,6 +285,7 @@ SwXText::insertString(const uno::Reference< text::XTextRange >& xTextRange, const OUString& rString, sal_Bool bAbsorb) { SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("SwXText::insertString"); if (!xTextRange.is()) { @@ -500,6 +502,7 @@ SwXText::insertTextContent( sal_Bool bAbsorb) { SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("SwXText::insertTextContent"); if (!xRange.is()) { @@ -849,6 +852,7 @@ uno::Reference< text::XText > SAL_CALL SwXText::getText() { SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("SwXText::getText"); const uno::Reference< text::XText > xRet(this); return xRet; diff --git a/sw/source/uibase/uno/unotxvw.cxx b/sw/source/uibase/uno/unotxvw.cxx index 94c19a4872b2..aaeb9e6ae5e1 100644 --- a/sw/source/uibase/uno/unotxvw.cxx +++ b/sw/source/uibase/uno/unotxvw.cxx @@ -74,6 +74,7 @@ #include "swdtflvr.hxx" #include #include +#include #include #include @@ -481,6 +482,7 @@ void SAL_CALL SwXTextView::setFormDesignMode( sal_Bool DesignMode ) uno::Reference< text::XTextViewCursor > SwXTextView::getViewCursor() { SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("getViewCursor"); if(GetView()) { if(!mxTextViewCursor.is()) @@ -1139,6 +1141,7 @@ void SwXTextViewCursor::gotoRange( void SwXTextViewCursor::gotoStart(sal_Bool bExpand) { SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("SwXTextViewCursor::gotoStart"); if(m_pView) { if (!IsTextSelection()) @@ -1153,6 +1156,7 @@ void SwXTextViewCursor::gotoStart(sal_Bool bExpand) void SwXTextViewCursor::gotoEnd(sal_Bool bExpand) { SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("SwXTextViewCursor::gotoEnd"); if(m_pView) { if (!IsTextSelection()) @@ -1548,6 +1552,7 @@ Any SwXTextViewCursor::getPropertyDefault( const OUString& rPropertyName ) sal_Bool SwXTextViewCursor::goDown(sal_Int16 nCount, sal_Bool bExpand) { SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("SwXTextViewCursor::goDown"); bool bRet = false; if(m_pView) { @@ -1564,6 +1569,7 @@ sal_Bool SwXTextViewCursor::goDown(sal_Int16 nCount, sal_Bool bExpand) sal_Bool SwXTextViewCursor::goUp(sal_Int16 nCount, sal_Bool bExpand) { SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("SwXTextViewCursor::goUp"); bool bRet = false; if(m_pView) { -- cgit viewer2 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff