summaryrefslogtreecommitdiff
path: root/sfx2
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 /sfx2
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 'sfx2')
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 44ae593893e2..f0efafec87e8 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -118,6 +118,7 @@
#include <sfx2/DocumentMetadataAccess.hxx>
#include "printhelper.hxx"
#include <sfx2/sfxresid.hxx>
+#include <comphelper/profilezone.hxx>
// namespaces
@@ -1571,6 +1572,7 @@ void SAL_CALL SfxBaseModel::storeSelf( const Sequence< beans::PropertyValue >
void SAL_CALL SfxBaseModel::store()
{
+ ::comphelper::ProfileZone aZone("store");
storeSelf( Sequence< beans::PropertyValue >() );
}
@@ -1582,6 +1584,7 @@ void SAL_CALL SfxBaseModel::storeAsURL( const OUString& rURL
const Sequence< beans::PropertyValue >& rArgs )
{
SfxModelGuard aGuard( *this );
+ ::comphelper::ProfileZone aZone("storeAs");
if ( m_pData->m_pObjectShell.is() )
{
@@ -1621,6 +1624,7 @@ void SAL_CALL SfxBaseModel::storeToURL( const OUString& rURL
const Sequence< beans::PropertyValue >& rArgs )
{
SfxModelGuard aGuard( *this );
+ ::comphelper::ProfileZone aZone("storeToURL");
if ( m_pData->m_pObjectShell.is() )
{