summaryrefslogtreecommitdiff
path: root/sc/source/ui
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 /sc/source/ui
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 'sc/source/ui')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx7
-rw-r--r--sc/source/ui/unoobj/viewuno.cxx2
2 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 305e788670cb..2c55292e40a9 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -68,6 +68,7 @@
#include <com/sun/star/script/XInvocation.hpp>
#include <com/sun/star/script/vba/XVBAEventProcessor.hpp>
#include <comphelper/processfactory.hxx>
+#include <comphelper/profilezone.hxx>
#include <comphelper/servicehelper.hxx>
#include <comphelper/string.hxx>
#include <cppuhelper/supportsservice.hxx>
@@ -1989,7 +1990,10 @@ void SAL_CALL ScModelObj::calculate()
{
SolarMutexGuard aGuard;
if (pDocShell)
+ {
+ ::comphelper::ProfileZone aZone("calculate");
pDocShell->DoRecalc(true);
+ }
else
{
OSL_FAIL("no DocShell"); //! throw exception?
@@ -2000,7 +2004,10 @@ void SAL_CALL ScModelObj::calculateAll()
{
SolarMutexGuard aGuard;
if (pDocShell)
+ {
+ ::comphelper::ProfileZone aZone("calculateAll");
pDocShell->DoHardRecalc();
+ }
else
{
OSL_FAIL("no DocShell"); //! throw exception?
diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx
index 612ab210d246..b7b502aa9191 100644
--- a/sc/source/ui/unoobj/viewuno.cxx
+++ b/sc/source/ui/unoobj/viewuno.cxx
@@ -39,6 +39,7 @@
#include <sfx2/printer.hxx>
#include <sfx2/request.hxx>
#include <sfx2/viewfrm.hxx>
+#include <comphelper/profilezone.hxx>
#include <comphelper/servicehelper.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <toolkit/helper/convert.hxx>
@@ -1070,6 +1071,7 @@ uno::Reference<sheet::XSpreadsheet> SAL_CALL ScTabViewObj::getActiveSheet()
void SAL_CALL ScTabViewObj::setActiveSheet( const uno::Reference<sheet::XSpreadsheet>& xActiveSheet )
{
SolarMutexGuard aGuard;
+ ::comphelper::ProfileZone aZone("setActiveSheet");
ScTabViewShell* pViewSh = GetViewShell();
if ( pViewSh && xActiveSheet.is() )