[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/runtime/nepomuk/services/strigi
From:       Sebastian Trueg <sebastian () trueg ! de>
Date:       2010-11-29 9:33:23
Message-ID: 20101129093323.89AB3AC8A3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1201969 by trueg:

Added some debugging output allowing to time the indexing.

 M  +18 -0     indexscheduler.cpp  


--- trunk/KDE/kdebase/runtime/nepomuk/services/strigi/indexscheduler.cpp #1201968:1201969
@@ -242,18 +242,36 @@
     // initialization
     queueAllFoldersForUpdate();
 
+#ifndef NDEBUG
+    QTime timer;
+    timer.start();
+#endif
+
     removeOldAndUnwantedEntries();
 
+#ifndef NDEBUG
+    kDebug() << "Removed old entries:" << timer.elapsed();
+    timer.restart();
+#endif
+
     while ( waitForContinue() ) {
         // wait for more dirs to analyze in case the initial
         // indexing is done
         if ( m_dirsToUpdate.isEmpty() ) {
             setIndexingStarted( false );
 
+#ifndef NDEBUG
+            kDebug() << "All folders updated:" << timer.elapsed();
+#endif
+
             m_dirsToUpdateMutex.lock();
             m_dirsToUpdateWc.wait( &m_dirsToUpdateMutex );
             m_dirsToUpdateMutex.unlock();
 
+#ifndef NDEBUG
+            timer.restart();
+#endif
+
             if ( !m_stopped )
                 setIndexingStarted( true );
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic