From: Heeyong Song Date: Wed, 21 Dec 2022 09:13:50 +0000 (+0900) Subject: Add trace log to NotificationManager::ProcessMessages X-Git-Tag: dali_2.2.7~3 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=commitdiff_plain;h=ab5d2ee99a1b975867bf694b5cdeb15df01b9cb5 Add trace log to NotificationManager::ProcessMessages Change-Id: I8a7d3080087ef29448e3ac4b9ce333ce93e08e99 --- diff --git a/dali/internal/event/common/notification-manager.cpp b/dali/internal/event/common/notification-manager.cpp index 4764ed7..828586a 100644 --- a/dali/internal/event/common/notification-manager.cpp +++ b/dali/internal/event/common/notification-manager.cpp @@ -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();