Add trace log to NotificationManager::ProcessMessages 56/285856/1
authorHeeyong Song <heeyong.song@samsung.com>
Wed, 21 Dec 2022 09:13:50 +0000 (18:13 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 21 Dec 2022 09:13:50 +0000 (18:13 +0900)
Change-Id: I8a7d3080087ef29448e3ac4b9ce333ce93e08e99

dali/internal/event/common/notification-manager.cpp

index 4764ed7..828586a 100644 (file)
@@ -170,25 +170,30 @@ void NotificationManager::ProcessMessages()
   const MessageContainer::Iterator end  = mImpl->eventMessageQueue.End();
   if(iter != end)
   {
-    DALI_TRACE_BEGIN(gTraceFilter, "DALI_PROCESS_NOTIFICATION_MESSAGE");
+    DALI_TRACE_BEGIN(gTraceFilter, "DALI_NOTIFICATION_PROCESS_MESSAGE");
     for(; iter != end; ++iter)
     {
       (*iter)->Process(0u /*ignored*/);
     }
-    DALI_TRACE_END(gTraceFilter, "DALI_PROCESS_NOTIFICATION_MESSAGE");
+    DALI_TRACE_END(gTraceFilter, "DALI_NOTIFICATION_PROCESS_MESSAGE");
   }
   // release the processed messages from event side queue
   mImpl->eventMessageQueue.Clear();
 
   InterfaceContainer::Iterator       iter2 = mImpl->eventInterfaceQueue.Begin();
   const InterfaceContainer::Iterator end2  = mImpl->eventInterfaceQueue.End();
-  for(; iter2 != end2; ++iter2)
+  if(iter2 != end2)
   {
-    CompleteNotificationInterface* interface = *iter2;
-    if(interface)
+    DALI_TRACE_BEGIN(gTraceFilter, "DALI_NOTIFICATION_NOTIFY_COMPLETED");
+    for(; iter2 != end2; ++iter2)
     {
-      interface->NotifyCompleted();
+      CompleteNotificationInterface* interface = *iter2;
+      if(interface)
+      {
+        interface->NotifyCompleted();
+      }
     }
+    DALI_TRACE_END(gTraceFilter, "DALI_NOTIFICATION_NOTIFY_COMPLETED");
   }
   // just clear the container, we dont own the objects
   mImpl->eventInterfaceQueue.Clear();