From ab5d2ee99a1b975867bf694b5cdeb15df01b9cb5 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Wed, 21 Dec 2022 18:13:50 +0900 Subject: [PATCH] Add trace log to NotificationManager::ProcessMessages Change-Id: I8a7d3080087ef29448e3ac4b9ce333ce93e08e99 --- dali/internal/event/common/notification-manager.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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(); -- 2.7.4