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 /sd/source/ui/unoidl | |
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 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 2c85154539bf..17c8d271402d 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -38,6 +38,7 @@ #include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> #include <comphelper/processfactory.hxx> +#include <comphelper/profilezone.hxx> #include <editeng/unofield.hxx> #include <notifydocumentevent.hxx> @@ -2900,6 +2901,7 @@ sal_Bool SAL_CALL SdDrawPagesAccess::hasElements() uno::Reference< drawing::XDrawPage > SAL_CALL SdDrawPagesAccess::insertNewByIndex( sal_Int32 nIndex ) { ::SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("insertNewByIndex"); if( nullptr == mpModel ) throw lang::DisposedException(); @@ -3054,6 +3056,7 @@ sal_Int32 SAL_CALL SdMasterPagesAccess::getCount() uno::Any SAL_CALL SdMasterPagesAccess::getByIndex( sal_Int32 Index ) { ::SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("SdMasterPagesAccess::getByIndex"); if( nullptr == mpModel ) throw lang::DisposedException(); diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index 71078895f0fb..081b25604a84 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/view/PaperOrientation.hpp> #include <cppuhelper/implbase.hxx> #include <comphelper/processfactory.hxx> +#include <comphelper/profilezone.hxx> #include <comphelper/servicehelper.hxx> #include <cppuhelper/supportsservice.hxx> #include <rtl/ustrbuf.hxx> @@ -2361,6 +2362,7 @@ Reference< drawing::XDrawPage > SAL_CALL SdDrawPage::getMasterPage( ) void SAL_CALL SdDrawPage::setMasterPage( const Reference< drawing::XDrawPage >& xMasterPage ) { ::SolarMutexGuard aGuard; + ::comphelper::ProfileZone aZone("setMasterPage"); throwIfDisposed(); |