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 /sc/source/ui/unoobj/docuno.cxx | |
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 'sc/source/ui/unoobj/docuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 7 |
1 files changed, 7 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? |