From b1e3433611e3729ac8d9acbfbcbd750dccd738c5 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Mon, 18 Jul 2022 15:24:04 +0900 Subject: [PATCH] Add some logs to check performance Change-Id: Icc2e5847a3309438dccd216c9cc7b23c5b7edc1b --- dali/internal/adaptor/common/adaptor-impl.cpp | 10 +++++++++- .../tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp | 12 ++++++++---- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/dali/internal/adaptor/common/adaptor-impl.cpp b/dali/internal/adaptor/common/adaptor-impl.cpp index ddc912a..14f62fa 100644 --- a/dali/internal/adaptor/common/adaptor-impl.cpp +++ b/dali/internal/adaptor/common/adaptor-impl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -913,8 +913,16 @@ void Adaptor::ProcessCoreEvents() mPerformanceInterface->AddMarker(PerformanceInterface::PROCESS_EVENTS_START); } +#ifndef DALI_PROFILE_UBUNTU + DALI_LOG_RELEASE_INFO("Start ProcessEvents\n"); +#endif + mCore->ProcessEvents(); +#ifndef DALI_PROFILE_UBUNTU + DALI_LOG_RELEASE_INFO("End ProcessEvents\n"); +#endif + if(mPerformanceInterface) { mPerformanceInterface->AddMarker(PerformanceInterface::PROCESS_EVENTS_END); diff --git a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp index a77a163..89fcf47 100644 --- a/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp +++ b/dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp @@ -1184,13 +1184,13 @@ void WindowBaseEcoreWl2::OnKeyDown(void* data, int type, void* event) if(keyEvent->window == static_cast(ecore_wl2_window_id_get(mEcoreWindow))) { - DALI_LOG_INFO(gWindowBaseLogFilter, Debug::General, "WindowBaseEcoreWl2::OnKeyDown\n"); - std::string keyName(keyEvent->keyname); std::string logicalKey(""); std::string keyString(""); std::string compose(""); + DALI_LOG_RELEASE_INFO("OnKeyDown Start [%s]\n", keyName.c_str()); + // Ensure key compose string is not NULL as keys like SHIFT or arrow have a null string. if(keyEvent->compose) { @@ -1237,6 +1237,8 @@ void WindowBaseEcoreWl2::OnKeyDown(void* data, int type, void* event) Integration::KeyEvent keyEvent(keyName, logicalKey, keyString, keyCode, modifier, time, Integration::KeyEvent::DOWN, compose, deviceName, deviceClass, deviceSubclass); mKeyEventSignal.Emit(keyEvent); + + DALI_LOG_RELEASE_INFO("OnKeyDown End [%s]\n", keyName.c_str()); } } @@ -1246,8 +1248,6 @@ void WindowBaseEcoreWl2::OnKeyUp(void* data, int type, void* event) if(keyEvent->window == static_cast(ecore_wl2_window_id_get(mEcoreWindow))) { - DALI_LOG_INFO(gWindowBaseLogFilter, Debug::General, "WindowBaseEcoreWl2::OnKeyUp\n"); - #if defined(ECORE_VERSION_MAJOR) && (ECORE_VERSION_MAJOR >= 1) && defined(ECORE_VERSION_MINOR) && (ECORE_VERSION_MINOR >= 23) // Cancel processing flag is sent because this key event will combine with the previous key. So, the event should not actually perform anything. if(keyEvent->event_flags & ECORE_EVENT_FLAG_CANCEL) @@ -1262,6 +1262,8 @@ void WindowBaseEcoreWl2::OnKeyUp(void* data, int type, void* event) std::string keyString(""); std::string compose(""); + DALI_LOG_RELEASE_INFO("OnKeyUp Start [%s]\n", keyName.c_str()); + // Ensure key compose string is not NULL as keys like SHIFT or arrow have a null string. if(keyEvent->compose) { @@ -1308,6 +1310,8 @@ void WindowBaseEcoreWl2::OnKeyUp(void* data, int type, void* event) Integration::KeyEvent keyEvent(keyName, logicalKey, keyString, keyCode, modifier, time, Integration::KeyEvent::UP, compose, deviceName, deviceClass, deviceSubclass); mKeyEventSignal.Emit(keyEvent); + + DALI_LOG_RELEASE_INFO("OnKeyUp End [%s]\n", keyName.c_str()); } } -- 2.7.4