photosgallery/viewframework/medialists/src/glxmedialist.cpp
branchRCL_3
changeset 18 bcb43dc84c44
parent 14 ce1c7ad1f18b
child 32 78ad99c24f08
--- a/photosgallery/viewframework/medialists/src/glxmedialist.cpp	Mon Mar 15 12:40:30 2010 +0200
+++ b/photosgallery/viewframework/medialists/src/glxmedialist.cpp	Wed Mar 31 21:31:03 2010 +0300
@@ -680,9 +680,6 @@
 
     TInt index = iItemListObservers.Find(aObserver);
 
-    // Make sure the observer is in the array
-    // LOG THIS! __ASSERT_DEBUG(index != -1, Panic(EGlxPanicIllegalArgument)); // No such observer
-
     if (index != KErrNotFound) 
         {
         iItemListObservers.Remove(index);	
@@ -1738,8 +1735,12 @@
 inline void CGlxMediaList::UpdateMedia()
     {
     TRACER("CGlxMediaList::UpdateMedia");
-    
+#ifdef _DEBUG
+    TTime startTime;
+    startTime.HomeTime();
+#endif
     TInt count = iItemList->Count();
+    GLX_DEBUG2("CGlxMediaList::UpdateMedia() count=%d", count);    
     for (TInt i = 0; i < count; ++i)
         {
         TGlxMedia& item = iItemList->Item( i );
@@ -1751,6 +1752,12 @@
             UpdateMediaInvalidateAttributesChangedByCounts(item);
             }
         }
+#ifdef _DEBUG
+    TTime stopTime;
+    stopTime.HomeTime();
+    GLX_DEBUG2("=>CGlxMediaList::UpdateMedia() took <%d> us", 
+                    (TInt)stopTime.MicroSecondsFrom(startTime).Int64());
+#endif    
     }
 
 // -----------------------------------------------------------------------------