summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2017-03-30 14:25:40 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-06-16 14:01:56 +0200
commit08f6f9dded1b142b858c455da03319abac691655 (patch)
treec191e2f0535656b91b77aefb9c634c1fdd793853 /svx
parent6ade80cf142664e78954c7544534e9436ceb90c7 (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 'svx')
-rw-r--r--svx/source/unodraw/UnoNameItemTable.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/unodraw/UnoNameItemTable.cxx b/svx/source/unodraw/UnoNameItemTable.cxx
index 4d38ba0961a3..cab1dace59ce 100644
--- a/svx/source/unodraw/UnoNameItemTable.cxx
+++ b/svx/source/unodraw/UnoNameItemTable.cxx
@@ -25,6 +25,7 @@
#include <svl/itempool.hxx>
#include <svl/itemset.hxx>
#include <svl/style.hxx>
+#include <comphelper/profilezone.hxx>
#include <comphelper/sequence.hxx>
#include <cppuhelper/supportsservice.hxx>
@@ -93,6 +94,7 @@ void SAL_CALL SvxUnoNameItemTable::ImplInsertByName( const OUString& aName, cons
void SAL_CALL SvxUnoNameItemTable::insertByName( const OUString& aApiName, const uno::Any& aElement )
{
SolarMutexGuard aGuard;
+ ::comphelper::ProfileZone aZone("SvxUnoNameItemTable::insertByName");
if( hasByName( aApiName ) )
throw container::ElementExistException();
@@ -106,6 +108,7 @@ void SAL_CALL SvxUnoNameItemTable::insertByName( const OUString& aApiName, const
void SAL_CALL SvxUnoNameItemTable::removeByName( const OUString& aApiName )
{
SolarMutexGuard aGuard;
+ ::comphelper::ProfileZone aZone("SvxUnoNameItemTable::removeByName");
// a little quickfix for 2.0 to let applications clear api
// created items that are not used
@@ -191,6 +194,7 @@ void SAL_CALL SvxUnoNameItemTable::replaceByName( const OUString& aApiName, cons
uno::Any SAL_CALL SvxUnoNameItemTable::getByName( const OUString& aApiName )
{
SolarMutexGuard aGuard;
+ ::comphelper::ProfileZone aZone("SvxUnoNameItemTable::getByName");
OUString aName = SvxUnogetInternalNameForItem(mnWhich, aApiName);