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 /framework | |
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 'framework')
-rw-r--r-- | framework/source/loadenv/loadenv.cxx | 2 | ||||
-rw-r--r-- | framework/source/services/dispatchhelper.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx index 99dbb690afb6..54b17462c40e 100644 --- a/framework/source/loadenv/loadenv.cxx +++ b/framework/source/loadenv/loadenv.cxx @@ -84,6 +84,7 @@ #include <rtl/bootstrap.hxx> #include <vcl/svapp.hxx> #include <cppuhelper/implbase.hxx> +#include <comphelper/profilezone.hxx> const char PROP_TYPES[] = "Types"; const char PROP_NAME[] = "Name"; @@ -143,6 +144,7 @@ css::uno::Reference< css::lang::XComponent > LoadEnv::loadComponentFromURL(const const css::uno::Sequence< css::beans::PropertyValue >& lArgs ) { css::uno::Reference< css::lang::XComponent > xComponent; + ::comphelper::ProfileZone aZone("loadComponentFromURL"); try { diff --git a/framework/source/services/dispatchhelper.cxx b/framework/source/services/dispatchhelper.cxx index da6bc9c52997..305367649678 100644 --- a/framework/source/services/dispatchhelper.cxx +++ b/framework/source/services/dispatchhelper.cxx @@ -26,6 +26,7 @@ #include <com/sun/star/frame/XNotifyingDispatch.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/profilezone.hxx> namespace framework{ @@ -113,6 +114,7 @@ css::uno::Any SAL_CALL DispatchHelper::executeDispatch( bool SyncronFlag , const css::uno::Sequence< css::beans::PropertyValue >& lArguments ) { + ::comphelper::ProfileZone aZone("executeDispatch"); css::uno::Reference< css::uno::XInterface > xTHIS(static_cast< ::cppu::OWeakObject* >(this), css::uno::UNO_QUERY); m_aResult.clear(); |