summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-08-24 23:38:14 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2018-08-27 08:11:00 +0200
commitb4f16f918989b418a9dec3054700407cb93a7f51 (patch)
treea1f476afba1daaac4e6b5fc97884c2c53a8b8cd8
parent17226094bc771215d7532144d0242e24de76b763 (diff)
Add task count to Scheduler debug info
Change-Id: I60c00a40f119260ea34fb48efab72f1da8ae4e53 Reviewed-on: https://gerrit.libreoffice.org/59587 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
-rw-r--r--vcl/source/app/scheduler.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx
index d7f80e1f1783..4a35115f2db3 100644
--- a/vcl/source/app/scheduler.cxx
+++ b/vcl/source/app/scheduler.cxx
@@ -362,10 +362,12 @@ bool Scheduler::ProcessTaskScheduling()
sal_uInt64 nMinPeriod = InfiniteTimeoutMs;
sal_uInt64 nMostUrgentPeriod = InfiniteTimeoutMs;
sal_uInt64 nReadyPeriod = InfiniteTimeoutMs;
+ unsigned nTasks = 0;
pSchedulerData = rSchedCtx.mpFirstSchedulerData;
while ( pSchedulerData )
{
+ ++nTasks;
const Timer *timer = dynamic_cast<Timer*>( pSchedulerData->mpTask );
if ( timer )
SAL_INFO( "vcl.schedule", tools::Time::GetSystemTicks() << " "
@@ -423,7 +425,8 @@ next_entry:
}
if ( InfiniteTimeoutMs != nMinPeriod )
- SAL_INFO("vcl.schedule", "Calculated minimum timeout as " << nMinPeriod );
+ SAL_INFO("vcl.schedule", "Calculated minimum timeout as " << nMinPeriod
+ << " of " << nTasks << " tasks" );
UpdateSystemTimer( rSchedCtx, nMinPeriod, true, nTime );
if ( pMostUrgent )