vcl/source/app/scheduler.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit b4f16f918989b418a9dec3054700407cb93a7f51
Author:     Jan-Marek Glogowski <glo...@fbihome.de>
AuthorDate: Fri Aug 24 23:38:14 2018 +0200
Commit:     Jan-Marek Glogowski <glo...@fbihome.de>
CommitDate: Mon Aug 27 08:11:00 2018 +0200

    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 <glo...@fbihome.de>

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 )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to