From b4f16f918989b418a9dec3054700407cb93a7f51 Mon Sep 17 00:00:00 2001 From: Jan-Marek Glogowski Date: Fri, 24 Aug 2018 23:38:14 +0200 Subject: 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 --- vcl/source/app/scheduler.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vcl') 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( 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 ) -- cgit