Kaydet (Commit) b4f16f91 authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski

Add task count to Scheduler debug info

Change-Id: I60c00a40f119260ea34fb48efab72f1da8ae4e53
Reviewed-on: https://gerrit.libreoffice.org/59587
Tested-by: Jenkins
Reviewed-by: 's avatarJan-Marek Glogowski <glogow@fbihome.de>
üst 17226094
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment