summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-07-20 10:54:30 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-12-05 08:17:46 -0500
commit4ffee8f4532cc561cd0c717b4bd6e52a99f5c43d (patch)
treeb81098e0b953f32810ba5ae1b842be26ead96d9e /vcl
parent4d6750e789c4dd6d75398021b9f804dcd5aab78f (diff)
tdf#97087 GDB pretty print the Scheduler task list
In addition to the GDB pretty printer, this annotates a lot more Timers and Idles. Change-Id: I5b93fab02161b23bb753e65ef92643a04fb0789c (cherry picked from commit 9e51007039770370182839846676b205f5c34c57) (cherry picked from commit a090e1e17962c5ca95f66c9d18fca6ac5dd4bca0)
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/help.cxx8
-rw-r--r--vcl/source/app/timer.cxx3
-rw-r--r--vcl/source/control/edit.cxx1
-rw-r--r--vcl/source/control/quickselectionengine.cxx1
-rw-r--r--vcl/source/control/scrbar.cxx1
-rw-r--r--vcl/source/edit/texteng.cxx1
-rw-r--r--vcl/source/window/cursor.cxx1
-rw-r--r--vcl/source/window/dockmgr.cxx3
-rw-r--r--vcl/source/window/dockwin.cxx2
-rw-r--r--vcl/source/window/menufloatingwindow.cxx5
-rw-r--r--vcl/source/window/scrwnd.cxx1
-rw-r--r--vcl/source/window/seleng.cxx1
-rw-r--r--vcl/source/window/splitwin.cxx1
-rw-r--r--vcl/source/window/syswin.cxx1
-rw-r--r--vcl/source/window/toolbox.cxx3
-rw-r--r--vcl/source/window/window2.cxx1
-rw-r--r--vcl/source/window/wrkwin.cxx2
-rw-r--r--vcl/unx/generic/window/salframe.cxx1
18 files changed, 33 insertions, 4 deletions
diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx
index 90f11d766732..153abc29e371 100644
--- a/vcl/source/app/help.cxx
+++ b/vcl/source/app/help.cxx
@@ -272,10 +272,14 @@ HelpTextWindow::HelpTextWindow( vcl::Window* pParent, const OUString& rText, sal
if ( pSVData->maHelpData.mbSetKeyboardHelp )
pSVData->maHelpData.mbKeyboardHelp = true;
- const HelpSettings& rHelpSettings = pParent->GetSettings().GetHelpSettings();
+
maShowTimer.SetTimeoutHdl( LINK( this, HelpTextWindow, TimerHdl ) );
- maHideTimer.SetTimeoutHdl( LINK( this, HelpTextWindow, TimerHdl ) );
+ maShowTimer.SetDebugName( "vcl::HelpTextWindow maShowTimer" );
+
+ const HelpSettings& rHelpSettings = pParent->GetSettings().GetHelpSettings();
maHideTimer.SetTimeout( rHelpSettings.GetTipTimeout() );
+ maHideTimer.SetTimeoutHdl( LINK( this, HelpTextWindow, TimerHdl ) );
+ maHideTimer.SetDebugName( "vcl::HelpTextWindow maHideTimer" );
}
void HelpTextWindow::StateChanged(StateChangedType nType)
diff --git a/vcl/source/app/timer.cxx b/vcl/source/app/timer.cxx
index 1766d7f0efe1..accd92734746 100644
--- a/vcl/source/app/timer.cxx
+++ b/vcl/source/app/timer.cxx
@@ -113,7 +113,8 @@ Timer& Timer::operator=( const Timer& rTimer )
return *this;
}
-AutoTimer::AutoTimer()
+AutoTimer::AutoTimer( const sal_Char *pDebugName )
+ : Timer( pDebugName )
{
mbAuto = true;
}
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index ceb3b095b6c8..4a3123765ecd 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2416,6 +2416,7 @@ void Edit::EnableUpdateData( sal_uLong nTimeout )
{
mpUpdateDataTimer = new Timer("UpdateDataTimer");
mpUpdateDataTimer->SetTimeoutHdl( LINK( this, Edit, ImplUpdateDataHdl ) );
+ mpUpdateDataTimer->SetDebugName( "vcl::Edit mpUpdateDataTimer" );
}
mpUpdateDataTimer->SetTimeout( nTimeout );
diff --git a/vcl/source/control/quickselectionengine.cxx b/vcl/source/control/quickselectionengine.cxx
index e4769505c128..1a0b6a56ec9b 100644
--- a/vcl/source/control/quickselectionengine.cxx
+++ b/vcl/source/control/quickselectionengine.cxx
@@ -44,6 +44,7 @@ namespace vcl
{
aSearchTimeout.SetTimeout( 2500 );
aSearchTimeout.SetTimeoutHdl( LINK( this, QuickSelectionEngine_Data, SearchStringTimeout ) );
+ aSearchTimeout.SetDebugName( "vcl::QuickSelectionEngine_Data aSearchTimeout" );
}
~QuickSelectionEngine_Data()
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index c16f4f52de57..2e79f5729b40 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -94,6 +94,7 @@ void ScrollBar::ImplInit( vcl::Window* pParent, WinBits nStyle )
{
mpData = new ImplScrollBarData;
mpData->maTimer.SetTimeoutHdl( LINK( this, ScrollBar, ImplAutoTimerHdl ) );
+ mpData->maTimer.SetDebugName( "vcl::ScrollBar mpData->maTimer" );
mpData->mbHide = false;
}
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 3ac06dd47f67..c3353b55cb89 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -93,6 +93,7 @@ TextEngine::TextEngine()
mpIdleFormatter = new IdleFormatter;
mpIdleFormatter->SetIdleHdl( LINK( this, TextEngine, IdleFormatHdl ) );
+ mpIdleFormatter->SetDebugName( "vcl::TextEngine mpIdleFormatter" );
mpRefDev = VclPtr<VirtualDevice>::Create();
diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx
index 7d76f19dee9e..2133f1821bfb 100644
--- a/vcl/source/window/cursor.cxx
+++ b/vcl/source/window/cursor.cxx
@@ -185,6 +185,7 @@ void vcl::Cursor::ImplDoShow( bool bDrawDirect, bool bRestore )
mpData = new ImplCursorData;
mpData->mbCurVisible = false;
mpData->maTimer.SetTimeoutHdl( LINK( this, Cursor, ImplTimerHdl ) );
+ mpData->maTimer.SetDebugName( "vcl ImplCursorData maTimer" );
}
mpData->mpWindow = pWindow;
diff --git a/vcl/source/window/dockmgr.cxx b/vcl/source/window/dockmgr.cxx
index 1467df89f029..e22b306d8a0b 100644
--- a/vcl/source/window/dockmgr.cxx
+++ b/vcl/source/window/dockmgr.cxx
@@ -89,8 +89,11 @@ ImplDockFloatWin2::ImplDockFloatWin2( vcl::Window* pParent, WinBits nWinBits,
maDockIdle.SetIdleHdl( LINK( this, ImplDockFloatWin2, DockTimerHdl ) );
maDockIdle.SetPriority( SchedulerPriority::MEDIUM );
+ maDockIdle.SetDebugName( "vcl::ImplDockFloatWin2 maDockIdle" );
+
maEndDockIdle.SetIdleHdl( LINK( this, ImplDockFloatWin2, EndDockTimerHdl ) );
maEndDockIdle.SetPriority( SchedulerPriority::MEDIUM );
+ maEndDockIdle.SetDebugName( "vcl::ImplDockFloatWin2 maEndDockIdle" );
}
ImplDockFloatWin2::~ImplDockFloatWin2()
diff --git a/vcl/source/window/dockwin.cxx b/vcl/source/window/dockwin.cxx
index ecad1c0812f1..836ea9880e71 100644
--- a/vcl/source/window/dockwin.cxx
+++ b/vcl/source/window/dockwin.cxx
@@ -99,6 +99,7 @@ ImplDockFloatWin::ImplDockFloatWin( vcl::Window* pParent, WinBits nWinBits,
maDockIdle.SetIdleHdl( LINK( this, ImplDockFloatWin, DockTimerHdl ) );
maDockIdle.SetPriority( SchedulerPriority::MEDIUM );
+ maDockIdle.SetDebugName( "vcl::ImplDockFloatWin maDockIdle" );
}
ImplDockFloatWin::~ImplDockFloatWin()
@@ -305,6 +306,7 @@ void DockingWindow::ImplInitDockingWindowData()
//To-Do, reuse maResizeTimer
maLayoutIdle.SetPriority(SchedulerPriority::RESIZE);
maLayoutIdle.SetIdleHdl( LINK( this, DockingWindow, ImplHandleLayoutTimerHdl ) );
+ maLayoutIdle.SetDebugName( "vcl::DockingWindow maLayoutIdle" );
}
void DockingWindow::ImplInit( vcl::Window* pParent, WinBits nStyle )
diff --git a/vcl/source/window/menufloatingwindow.cxx b/vcl/source/window/menufloatingwindow.cxx
index 6bf2fde56e3e..3bb0801b0a8c 100644
--- a/vcl/source/window/menufloatingwindow.cxx
+++ b/vcl/source/window/menufloatingwindow.cxx
@@ -51,9 +51,14 @@ MenuFloatingWindow::MenuFloatingWindow( Menu* pMen, vcl::Window* pParent, WinBit
aHighlightChangedTimer.SetTimeoutHdl( LINK( this, MenuFloatingWindow, HighlightChanged ) );
aHighlightChangedTimer.SetTimeout( GetSettings().GetMouseSettings().GetMenuDelay() );
+ aHighlightChangedTimer.SetDebugName( "vcl::MenuFloatingWindow aHighlightChangedTimer" );
+
aSubmenuCloseTimer.SetTimeout( GetSettings().GetMouseSettings().GetMenuDelay() );
aSubmenuCloseTimer.SetTimeoutHdl( LINK( this, MenuFloatingWindow, SubmenuClose ) );
+ aSubmenuCloseTimer.SetDebugName( "vcl::MenuFloatingWindow aSubmenuCloseTimer" );
+
aScrollTimer.SetTimeoutHdl( LINK( this, MenuFloatingWindow, AutoScroll ) );
+ aScrollTimer.SetDebugName( "vcl::MenuFloatingWindow aScrollTimer" );
AddEventListener( LINK( this, MenuFloatingWindow, ShowHideListener ) );
}
diff --git a/vcl/source/window/scrwnd.cxx b/vcl/source/window/scrwnd.cxx
index 07a762f93328..e776140d2347 100644
--- a/vcl/source/window/scrwnd.cxx
+++ b/vcl/source/window/scrwnd.cxx
@@ -77,6 +77,7 @@ ImplWheelWindow::ImplWheelWindow( vcl::Window* pParent ) :
mpTimer = new Timer("WheelWindowTimer");
mpTimer->SetTimeoutHdl( LINK( this, ImplWheelWindow, ImplScrollHdl ) );
mpTimer->SetTimeout( mnTimeout );
+ mpTimer->SetDebugName( "vcl::ImplWheelWindow mpTimer" );
mpTimer->Start();
CaptureMouse();
diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx
index 27075d431c3e..be1c909b91a1 100644
--- a/vcl/source/window/seleng.cxx
+++ b/vcl/source/window/seleng.cxx
@@ -44,6 +44,7 @@ SelectionEngine::SelectionEngine( vcl::Window* pWindow, FunctionSet* pFuncSet )
aWTimer.SetTimeoutHdl( LINK( this, SelectionEngine, ImpWatchDog ) );
aWTimer.SetTimeout( nUpdateInterval );
+ aWTimer.SetDebugName( "vcl::SelectionEngine aWTimer" );
}
SelectionEngine::~SelectionEngine()
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index a50aaf3e90b0..e1582cd96d1e 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -1382,6 +1382,7 @@ SplitWindow::SplitWindow( vcl::Window* pParent, WinBits nStyle ) :
DockingWindow( WINDOW_SPLITWINDOW )
{
ImplInit( pParent, nStyle );
+ DockingWindow::SetIdleDebugName( "vcl::SplitWindow maLayoutIdle" );
}
SplitWindow::~SplitWindow()
diff --git a/vcl/source/window/syswin.cxx b/vcl/source/window/syswin.cxx
index 976fde74c5e1..bb834906af03 100644
--- a/vcl/source/window/syswin.cxx
+++ b/vcl/source/window/syswin.cxx
@@ -83,6 +83,7 @@ SystemWindow::SystemWindow(WindowType nType)
//To-Do, reuse maResizeTimer
maLayoutIdle.SetPriority(SchedulerPriority::RESIZE);
maLayoutIdle.SetIdleHdl( LINK( this, SystemWindow, ImplHandleLayoutTimerHdl ) );
+ maLayoutIdle.SetDebugName( "vcl::SystemWindow maLayoutIdle" );
}
void SystemWindow::loadUI(vcl::Window* pParent, const OString& rID, const OUString& rUIXMLDescription,
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index f1fe935d4af6..de2716a8e4a0 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -1389,13 +1389,14 @@ void ToolBox::ImplInitToolBoxData()
mnImagesRotationAngle = 0;
mpStatusListener = new VclStatusListener<ToolBox>(this, ".uno:ImageOrientation");
- mpIdle = new Idle("toolbox update");
+ mpIdle = new Idle("vcl::ToolBox maIdle update");
mpIdle->SetPriority( SchedulerPriority::RESIZE );
mpIdle->SetIdleHdl( LINK( this, ToolBox, ImplUpdateHdl ) );
// set timeout and handler for dropdown items
mpData->maDropdownTimer.SetTimeout( 250 );
mpData->maDropdownTimer.SetTimeoutHdl( LINK( this, ToolBox, ImplDropdownLongClickHdl ) );
+ mpData->maDropdownTimer.SetDebugName( "vcl::ToolBox mpData->maDropdownTimer" );
}
void ToolBox::ImplInit( vcl::Window* pParent, WinBits nStyle )
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 559492bf2d6e..dd68e0b8647d 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -320,6 +320,7 @@ void Window::StartTracking( StartTrackingFlags nFlags )
else
pSVData->maWinData.mpTrackTimer->SetTimeout( GetSettings().GetMouseSettings().GetButtonStartRepeat() );
pSVData->maWinData.mpTrackTimer->SetTimeoutHdl( LINK( this, Window, ImplTrackTimerHdl ) );
+ pSVData->maWinData.mpTrackTimer->SetDebugName( "vcl::Window pSVData->maWinData.mpTrackTimer" );
pSVData->maWinData.mpTrackTimer->Start();
}
diff --git a/vcl/source/window/wrkwin.cxx b/vcl/source/window/wrkwin.cxx
index cacdfa0857b4..9c51ba1a913b 100644
--- a/vcl/source/window/wrkwin.cxx
+++ b/vcl/source/window/wrkwin.cxx
@@ -41,6 +41,8 @@ void WorkWindow::ImplInitWorkWindowData()
mbPresentationVisible = false;
mbPresentationFull = false;
mbFullScreenMode = false;
+
+ maLayoutIdle.SetDebugName( "vcl::WorkWindow maLayoutIdle" );
}
void WorkWindow::ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* pSystemParentData )
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index 14f26b9df943..cb72fece7c8a 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -812,6 +812,7 @@ X11SalFrame::X11SalFrame( SalFrame *pParent, SalFrameStyleFlags nSalFrameStyle,
maAlwaysOnTopRaiseTimer.SetTimeoutHdl( LINK( this, X11SalFrame, HandleAlwaysOnTopRaise ) );
maAlwaysOnTopRaiseTimer.SetTimeout( 100 );
+ maAlwaysOnTopRaiseTimer.SetDebugName( "vcl::X11SalFrame maAlwaysOnTopRaiseTimer" );
meWindowType = WMAdaptor::windowType_Normal;
mnDecorationFlags = WMAdaptor::decoration_All;