diff options
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? |