diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2017-03-30 14:25:40 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-06-16 14:01:56 +0200 |
commit | 08f6f9dded1b142b858c455da03319abac691655 (patch) | |
tree | c191e2f0535656b91b77aefb9c634c1fdd793853 /sw | |
parent | 6ade80cf142664e78954c7544534e9436ceb90c7 (diff) |
Profiling API: add ProfileZones
Change-Id: Ie5669bd75d9b4be047d98402cb69ac313ab618df
Reviewed-on: https://gerrit.libreoffice.org/38787
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/unocore/unoobj.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/unocore/unotext.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/uno/unotxvw.cxx | 6 |
4 files changed, 16 insertions, 0 deletions
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 <svx/shapepropertynotifier.hxx> #include <crstate.hxx> #include <comphelper/extract.hxx> +#include <comphelper/profilezone.hxx> #include <cppuhelper/supportsservice.hxx> #include <svx/scene3d.hxx> #include <com/sun/star/drawing/XDrawPageSupplier.hpp> @@ -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 <unoparaframeenum.hxx> #include <unoparagraph.hxx> #include <comphelper/servicehelper.hxx> +#include <comphelper/profilezone.hxx> 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 <osl/mutex.hxx> #include <vcl/svapp.hxx> +#include <comphelper/profilezone.hxx> #include <comphelper/sequence.hxx> #include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> @@ -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 <vcl/svapp.hxx> #include <comphelper/processfactory.hxx> +#include <comphelper/profilezone.hxx> #include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> @@ -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) { |