summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-07-05 12:22:00 +0300
committerMiklos Vajna <vmiklos@collabora.com>2021-07-20 11:23:59 +0200
commitffcca583b856cd9d1f7f6fd373bfa617c49c1ef4 (patch)
treeb5f0782cc8d9655b3f217955cf5ca5962525d5a8
parenteb38177325de463ab043a98057c428751cc79596 (diff)
Add a few more ProfileZones
Change-Id: Ic7f9630fb31a3fae147460cc5d406b4428b35812 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118406 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--sw/source/core/layout/layact.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx
index 04201e1c6f5e..0c8ac383c6cb 100644
--- a/sw/source/core/layout/layact.cxx
+++ b/sw/source/core/layout/layact.cxx
@@ -40,6 +40,7 @@
#include <sfx2/event.hxx>
#include <ftnidx.hxx>
+#include <comphelper/profilezone.hxx>
#include <vcl/svapp.hxx>
#include <editeng/opaqitem.hxx>
#include <SwSmartTagMgr.hxx>
@@ -320,6 +321,8 @@ bool SwLayAction::RemoveEmptyBrowserPages()
void SwLayAction::Action(OutputDevice* pRenderContext)
{
+ comphelper::ProfileZone("SwLayAction::Action");
+
m_bActionInProgress = true;
//TurboMode? Hands-off during idle-format
@@ -1173,6 +1176,8 @@ bool SwLayAction::IsShortCut( SwPageFrame *&prPage )
// introduce support for vertical layout
bool SwLayAction::FormatLayout( OutputDevice *pRenderContext, SwLayoutFrame *pLay, bool bAddRect )
{
+ comphelper::ProfileZone("SwLayAction::FormatLayout");
+
// save page for loop control
if( pLay->IsPageFrame() && static_cast<SwPageFrame*>(pLay) != m_pCurPage )
{
@@ -1596,6 +1601,8 @@ bool SwLayAction::FormatLayoutTab( SwTabFrame *pTab, bool bAddRect )
bool SwLayAction::FormatContent( const SwPageFrame *pPage )
{
+ comphelper::ProfileZone("SwLayAction::FormatContent");
+
const SwContentFrame *pContent = pPage->ContainsContent();
const SwViewShell *pSh = m_pRoot->GetCurrShell();
const bool bBrowse = pSh && pSh->GetViewOptions()->getBrowseMode();
@@ -2129,6 +2136,8 @@ SwLayIdle::SwLayIdle( SwRootFrame *pRt, SwViewShellImp *pI ) :
, m_bIndicator( false )
#endif
{
+ comphelper::ProfileZone("SwLayIdle::SwLayIdle");
+
SAL_INFO("sw.idle", "SwLayIdle() entry");
pImp->m_pIdleAct = this;