[Tizen] Print log for application and tizen frameworks 26/316226/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 12 Dec 2024 01:55:57 +0000 (10:55 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 12 Dec 2024 07:51:59 +0000 (16:51 +0900)
Change-Id: I9835e2b5d2d6e67dd5becd15d517fcd3eefcef72
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/adaptor/common/adaptor-impl.cpp
dali/internal/adaptor/common/application-impl.cpp
dali/internal/adaptor/common/combined-update-render-controller.cpp
dali/internal/adaptor/common/framework.cpp
dali/internal/adaptor/tizen-wayland/framework-tizen.cpp
dali/internal/application-model/component-based/appmodel-component-based-tizen.cpp
dali/internal/application-model/normal/appmodel-normal-tizen.cpp
dali/internal/application-model/watch/appmodel-watch-tizen.cpp
dali/internal/application-model/widget/appmodel-widget-tizen.cpp
dali/internal/system/common/abort-handler.cpp

index 2c963b7109095f58ea73dcb37a94b36a4d23d386..93f390fc3f53edeac338202c9a00f84dea61d228 100644 (file)
@@ -334,6 +334,7 @@ void Adaptor::Initialize(GraphicsFactoryInterface& graphicsFactory)
 
 Adaptor::~Adaptor()
 {
+  DALI_LOG_RELEASE_INFO("Adaptor::~Adaptor()\n");
   Accessibility::Bridge::GetCurrentBridge()->Terminate();
 
   // Ensure stop status
@@ -439,6 +440,8 @@ void Adaptor::Start()
   {
     mAddOnManager->Start();
   }
+
+  DALI_LOG_RELEASE_INFO("Adaptor::Start: Started\n");
 }
 
 // Dali::Internal::Adaptor::Adaptor::Pause
index 41c8f646e2b6901bad6c9c80949e316a1e0d3139..0b9bb6a4843a75fcbef87c33767ae7bfd5b74fe2 100644 (file)
@@ -173,6 +173,7 @@ Application::Application(int* argc, char** argv[], const std::string& stylesheet
 
 Application::~Application()
 {
+  DALI_LOG_RELEASE_INFO("Application::~Application\n");
   SingletonService service = SingletonService::Get();
   // Note this can be false i.e. if Application has never created a Core instance
   if(service)
@@ -180,7 +181,11 @@ Application::~Application()
     service.UnregisterAll();
   }
 
-  mMainWindow.Reset();
+  if(mMainWindow)
+  {
+    DALI_LOG_RELEASE_INFO("Application terminate not comes. Main window reset now\n");
+    mMainWindow.Reset();
+  }
 
   delete mCommandLineOptions;
 
@@ -312,6 +317,7 @@ void Application::CreateWindow()
   }
 
   mMainWindow = Dali::Window(window);
+  DALI_LOG_RELEASE_INFO("Main window created done\n");
 
   // Quit the application when the window is closed
   GetImplementation(mMainWindow).DeleteRequestSignal().Connect(mSlotDelegate, &Application::Quit);
@@ -344,6 +350,7 @@ void Application::Lower()
 
 void Application::Quit()
 {
+  DALI_LOG_RELEASE_INFO("Application::Quit requested!\n");
   // Actually quit the application.
   // Force a call to Quit even if adaptor is not running.
   Internal::Adaptor::Adaptor::GetImplementation(*mAdaptor).AddIdle(MakeCallback(this, &Application::QuitFromMainLoop), false);
@@ -351,16 +358,19 @@ void Application::Quit()
 
 void Application::QuitFromMainLoop()
 {
+  DALI_LOG_RELEASE_INFO("Application::Quit processing\n");
   Accessibility::Bridge::GetCurrentBridge()->Terminate();
 
   mAdaptor->Stop();
 
   mFramework->Quit();
   // This will trigger OnTerminate(), below, after the main loop has completed.
+  DALI_LOG_RELEASE_INFO("Application::Quit finished\n");
 }
 
 void Application::OnInit()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnInit\n");
   mEnvironmentOptions = std::unique_ptr<EnvironmentOptions>(new EnvironmentOptions());
 
   mFramework->AddAbortCallback(MakeCallback(this, &Application::QuitFromMainLoop));
@@ -417,6 +427,7 @@ void Application::OnInit()
 
 void Application::OnTerminate()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnTerminate\n");
   // We've been told to quit by AppCore, ecore_x_destroy has been called, need to quit synchronously
   // delete the window as ecore_x has been destroyed by AppCore
 
@@ -429,7 +440,11 @@ void Application::OnTerminate()
     mAdaptor->Stop();
   }
 
-  mMainWindow.Reset(); // This only resets (clears) the default Window
+  if(mMainWindow)
+  {
+    DALI_LOG_RELEASE_INFO("Main window reset at app terminated case\n");
+    mMainWindow.Reset(); // This only resets (clears) the default Window
+  }
 
   // If DALi's UI Thread works, some resources are created in UI Thread, not Main thread.
   // For that case, these resource should be deleted in UI Thread.
@@ -442,6 +457,7 @@ void Application::OnTerminate()
 
 void Application::OnPause()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnPause\n");
   Accessibility::Bridge::GetCurrentBridge()->ApplicationPaused();
 
   // A DALi app should handle Pause/Resume events.
@@ -453,6 +469,7 @@ void Application::OnPause()
 
 void Application::OnResume()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnResume\n");
   Accessibility::Bridge::GetCurrentBridge()->ApplicationResumed();
 
   // Emit the signal first so the application can queue any messages before we do an update/render
@@ -470,6 +487,7 @@ void Application::OnResume()
 
 void Application::OnReset()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnReset\n");
   /*
    * usually, reset callback was called when a caller request to launch this application via aul.
    * because Application class already handled initialization in OnInit(), OnReset do nothing.
@@ -480,12 +498,14 @@ void Application::OnReset()
 
 void Application::OnAppControl(void* data)
 {
+  DALI_LOG_RELEASE_INFO("Application::OnAppControl\n");
   Dali::Application application(this);
   mAppControlSignal.Emit(application, data);
 }
 
 void Application::OnLanguageChanged()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnLanguageChanged\n");
   mAdaptor->NotifyLanguageChanged();
   Dali::Application application(this);
   mLanguageChangedSignal.Emit(application);
@@ -493,30 +513,35 @@ void Application::OnLanguageChanged()
 
 void Application::OnRegionChanged()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnRegionChanged\n");
   Dali::Application application(this);
   mRegionChangedSignal.Emit(application);
 }
 
 void Application::OnBatteryLow(Dali::DeviceStatus::Battery::Status status)
 {
+  DALI_LOG_RELEASE_INFO("Application::OnBatteryLow\n");
   Dali::Application application(this);
   mLowBatterySignal.Emit(status);
 }
 
 void Application::OnMemoryLow(Dali::DeviceStatus::Memory::Status status)
 {
+  DALI_LOG_RELEASE_INFO("Application::OnMemoryLow\n");
   Dali::Application application(this);
   mLowMemorySignal.Emit(status);
 }
 
 void Application::OnDeviceOrientationChanged(Dali::DeviceStatus::Orientation::Status status)
 {
+  DALI_LOG_RELEASE_INFO("Application::OnDeviceOrientationChanged\n");
   Dali::Application application(this);
   mDeviceOrientationChangedSignal.Emit(status);
 }
 
 void Application::OnSurfaceCreated(Any newSurface)
 {
+  DALI_LOG_RELEASE_INFO("Application::OnSurfaceCreated\n");
   void* newWindow = AnyCast<void*>(newSurface);
   void* oldWindow = AnyCast<void*>(mMainWindow.GetNativeHandle());
   if(oldWindow != newWindow)
@@ -534,48 +559,56 @@ void Application::OnSurfaceDestroyed(Any surface)
 
 void Application::OnTaskInit()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnTaskInit\n");
   Dali::Application application(this);
   mTaskInitSignal.Emit(application);
 }
 
 void Application::OnTaskTerminate()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnTaskTerminate\n");
   Dali::Application application(this);
   mTaskTerminateSignal.Emit(application);
 }
 
 void Application::OnTaskAppControl(void* data)
 {
+  DALI_LOG_RELEASE_INFO("Application::OnTaskAppControl\n");
   Dali::Application application(this);
   mTaskAppControlSignal.Emit(application, data);
 }
 
 void Application::OnTaskLanguageChanged()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnTaskLanguageChanged\n");
   Dali::Application application(this);
   mTaskLanguageChangedSignal.Emit(application);
 }
 
 void Application::OnTaskRegionChanged()
 {
+  DALI_LOG_RELEASE_INFO("Application::OnTaskRegionChanged\n");
   Dali::Application application(this);
   mTaskRegionChangedSignal.Emit(application);
 }
 
 void Application::OnTaskBatteryLow(Dali::DeviceStatus::Battery::Status status)
 {
+  DALI_LOG_RELEASE_INFO("Application::OnTaskBatteryLow\n");
   Dali::Application application(this);
   mTaskLowBatterySignal.Emit(status);
 }
 
 void Application::OnTaskMemoryLow(Dali::DeviceStatus::Memory::Status status)
 {
+  DALI_LOG_RELEASE_INFO("Application::OnTaskMemoryLow\n");
   Dali::Application application(this);
   mTaskLowMemorySignal.Emit(status);
 }
 
 void Application::OnTaskDeviceOrientationChanged(Dali::DeviceStatus::Orientation::Status status)
 {
+  DALI_LOG_RELEASE_INFO("Application::OnTaskDeviceOrientationChanged\n");
   Dali::Application application(this);
   mTaskDeviceOrientationChangedSignal.Emit(status);
 }
index 47bebf36286ab04e0193c937d47443964e28f9f0..1a7c17dc394695669bbb15e679e491bada20a4ad 100644 (file)
@@ -174,10 +174,13 @@ CombinedUpdateRenderController::CombinedUpdateRenderController(AdaptorInternalSe
   mVsyncRender = environmentOptions.VsyncRenderRequired();
 
   mSleepTrigger = TriggerEventFactory::CreateTriggerEvent(MakeCallback(this, &CombinedUpdateRenderController::ProcessSleepRequest), TriggerEventInterface::KEEP_ALIVE_AFTER_TRIGGER);
+
+  DALI_LOG_RELEASE_INFO("CombinedUpdateRenderController::CombinedUpdateRenderController\n");
 }
 
 CombinedUpdateRenderController::~CombinedUpdateRenderController()
 {
+  DALI_LOG_RELEASE_INFO("CombinedUpdateRenderController::~CombinedUpdateRenderController\n");
   LOG_EVENT_TRACE;
 
   Stop();
@@ -201,6 +204,8 @@ void CombinedUpdateRenderController::Initialize()
 
   // The Update/Render thread will now run and initialise the graphics interface etc. and will then wait for Start to be called
   // When this function returns, the application initialisation on the event thread should occur
+
+  DALI_LOG_RELEASE_INFO("CombinedUpdateRenderController::Initialize\n");
 }
 
 void CombinedUpdateRenderController::Start()
index e9837f90a1000ded01db83d095a9f69d822b2dd7..d06fea2608ea5caa81d0bcbe479a39219dfa87f3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 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.
@@ -17,6 +17,9 @@
 // CLASS HEADER
 #include <dali/internal/adaptor/common/framework.h>
 
+// EXTERNAL INCLUDES
+#include <dali/integration-api/debug.h>
+
 namespace Dali
 {
 namespace Internal
@@ -70,6 +73,7 @@ void Framework::AddAbortCallback(CallbackBase* callback)
 
 void Framework::AbortCallback()
 {
+  DALI_LOG_ERROR("AbortCallback comes!\n");
   // if an abort call back has been installed run it.
   if(mAbortCallBack)
   {
index d0154dd77482f8eb2779473abf6451bfcacd08da..2aafd244f489b9425f8d0a54214dd09bca641a82 100644 (file)
@@ -310,6 +310,7 @@ FrameworkTizen::FrameworkTizen(Framework::Observer& observer, Framework::TaskObs
 
 FrameworkTizen::~FrameworkTizen()
 {
+  DALI_TRACE_SCOPE(gTraceFilter, "DALI_FRAMEWORK_DESTROY");
   if(mRunning)
   {
     Quit();
@@ -320,6 +321,7 @@ FrameworkTizen::~FrameworkTizen()
 
 bool FrameworkTizen::Create()
 {
+  DALI_TRACE_SCOPE(gTraceFilter, "DALI_FRAMEWORK_CREATE");
   mInitialised = true;
   mObserver.OnInit();
   return true;
@@ -342,6 +344,7 @@ void FrameworkTizen::Run()
 
 void FrameworkTizen::Quit()
 {
+  DALI_TRACE_BEGIN(gTraceFilter, "DALI_APPQUIT");
   mImpl->AppExit();
 }
 
index 0401669f2ea946cf8caaae2b6f5369089800bb89..d508fc5b856421b3a60dda68819418b154fe1054 100644 (file)
@@ -112,6 +112,7 @@ struct DALI_ADAPTOR_API AppModelComponentBased::Impl
 
   static void AppInit(int argc, char** argv, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppInit() emitted", __MODULE__, __func__, __LINE__);
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wold-style-cast"
     ecore_init();
@@ -127,16 +128,19 @@ struct DALI_ADAPTOR_API AppModelComponentBased::Impl
 
   static void AppRun(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppRun() emitted", __MODULE__, __func__, __LINE__);
     ecore_main_loop_begin();
   }
 
   static void AppExit(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppExit() emitted", __MODULE__, __func__, __LINE__);
     ecore_main_loop_quit();
   }
 
   static void* ComponentAppCreate(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > ComponentAppCreate() emitted", __MODULE__, __func__, __LINE__);
     FrameworkTizen*      framework = static_cast<FrameworkTizen*>(data);
     Framework::Observer* observer  = &framework->GetObserver();
     observer->OnInit();
@@ -146,12 +150,14 @@ struct DALI_ADAPTOR_API AppModelComponentBased::Impl
 
   static void ComponentAppTerminate(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > ComponentAppTerminate() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer* observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
     observer->OnTerminate();
   }
 
   static void ComponentAppFinish(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > ComponentAppFinish() emitted", __MODULE__, __func__, __LINE__);
     ecore_shutdown();
 
     if(Dali::EnvironmentVariable::GetEnvironmentVariable(AUL_LOADER_INIT_ENV))
index 0395e1c4f6b27306a5ab46f9f8ff79b371dbda3e..38385be4e7801c111e7067936376673693064300 100644 (file)
@@ -485,6 +485,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     int OnCreate() override
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnCreate() emitted", __MODULE__, __func__, __LINE__);
       AppCoreUiBase::OnCreate();
       mFramework->Create();
       return 0;
@@ -492,6 +493,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     int OnTerminate() override
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnTerminate() emitted", __MODULE__, __func__, __LINE__);
       AppCoreUiBase::OnTerminate();
       auto* observer = &mFramework->GetObserver();
       observer->OnTerminate();
@@ -500,6 +502,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     int OnPause() override
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnPause() emitted", __MODULE__, __func__, __LINE__);
       AppCoreUiBase::OnPause();
       auto* observer = &mFramework->GetObserver();
       observer->OnPause();
@@ -508,6 +511,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     int OnResume() override
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnResume() emitted", __MODULE__, __func__, __LINE__);
       AppCoreUiBase::OnResume();
       auto* observer = &mFramework->GetObserver();
       observer->OnResume();
@@ -516,6 +520,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     int OnControl(tizen_base::Bundle b) override
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnControl() emitted", __MODULE__, __func__, __LINE__);
       AppCoreUiBase::OnControl(b);
 
       app_control_h appControl = nullptr;
@@ -548,6 +553,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     void OnLoopInit(int argc, char** argv) override
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnLoopInit() emitted", __MODULE__, __func__, __LINE__);
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wold-style-cast"
       ecore_init();
@@ -563,6 +569,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     void OnLoopFinish() override
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnLoopFinish() emitted", __MODULE__, __func__, __LINE__);
       ecore_shutdown();
 
       if(Dali::EnvironmentVariable::GetEnvironmentVariable(AUL_LOADER_INIT_ENV))
@@ -580,17 +587,20 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     void OnLoopRun() override
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnLoopRun() emitted", __MODULE__, __func__, __LINE__);
       ecore_main_loop_begin();
     }
 
     void OnLoopExit() override
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnLoopExit() emitted", __MODULE__, __func__, __LINE__);
       ecore_main_loop_quit();
     }
 
   private:
     static void OnLanguageChanged(app_event_info_h event_info, void* user_data)
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnLanguageChanged() emitted", __MODULE__, __func__, __LINE__);
       auto*                context   = static_cast<UiAppContext*>(user_data);
       auto*                framework = context->mFramework;
       Framework::Observer* observer  = &framework->GetObserver();
@@ -611,6 +621,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     static void OnRegionFormatChanged(app_event_info_h event_info, void* user_data)
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnRegionFormatChanged() emitted", __MODULE__, __func__, __LINE__);
       auto*                context   = static_cast<UiAppContext*>(user_data);
       auto*                framework = context->mFramework;
       Framework::Observer* observer  = &framework->GetObserver();
@@ -631,6 +642,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     static void OnLowBattery(app_event_info_h event_info, void* user_data)
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnLowBattery() emitted", __MODULE__, __func__, __LINE__);
       auto*                context   = static_cast<UiAppContext*>(user_data);
       auto*                framework = context->mFramework;
       Framework::Observer* observer  = &framework->GetObserver();
@@ -650,6 +662,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     static void OnLowMemory(app_event_info_h event_info, void* user_data)
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnLowMemory() emitted", __MODULE__, __func__, __LINE__);
       auto*                context   = static_cast<UiAppContext*>(user_data);
       auto*                framework = context->mFramework;
       Framework::Observer* observer  = &framework->GetObserver();
@@ -669,6 +682,7 @@ struct DALI_ADAPTOR_API AppModelNormal::Impl
 
     static void OnDeviceOrientationChanged(app_event_info_h event_info, void* user_data)
     {
+      print_log(DLOG_INFO, "DALI", "%s: %s(%d) > OnDeviceOrientationChanged() emitted", __MODULE__, __func__, __LINE__);
       auto*                context   = static_cast<UiAppContext*>(user_data);
       auto*                framework = context->mFramework;
       Framework::Observer* observer  = &framework->GetObserver();
index 53a5b9a4acf7150bc30c07eaa42c5c865340c69e..a08c71e75e2ab62435185f7e59a0c453b31f33bb 100644 (file)
@@ -158,11 +158,13 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 #ifdef APPCORE_WATCH_AVAILABLE
   static bool WatchAppCreate(int width, int height, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > WatchAppCreate() emitted", __MODULE__, __func__, __LINE__);
     return static_cast<FrameworkTizen*>(data)->Create();
   }
 
   static void WatchAppTimeTick(watch_time_h time, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > WatchAppTimeTick() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer* observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
     WatchTime            curTime(time);
 
@@ -171,6 +173,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void WatchAppAmbientTick(watch_time_h time, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > WatchAppAmbientTick() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer* observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
     WatchTime            curTime(time);
 
@@ -179,6 +182,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void WatchAppAmbientChanged(bool ambient, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > WatchAppAmbientChanged() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer* observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
 
     observer->OnAmbientChanged(ambient);
@@ -186,6 +190,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void WatchAppControl(app_control_h app_control, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > WatchAppControl() emitted", __MODULE__, __func__, __LINE__);
     FrameworkTizen*      framework  = static_cast<FrameworkTizen*>(data);
     Framework::Observer* observer   = &framework->GetObserver();
     bundle*              bundleData = NULL;
@@ -199,6 +204,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void WatchAppTerminate(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > WatchAppTerminate() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer* observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
 
     observer->OnTerminate();
@@ -206,6 +212,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void WatchAppPause(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > WatchAppPause() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer* observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
 
     observer->OnPause();
@@ -213,6 +220,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void WatchAppResume(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > WatchAppResume() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer* observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
 
     observer->OnResume();
@@ -220,6 +228,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void ProcessBundle(FrameworkTizen* framework, bundle* bundleData)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > ProcessBundle() emitted", __MODULE__, __func__, __LINE__);
     if(bundleData == NULL)
     {
       return;
@@ -243,6 +252,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void AppLanguageChanged(AppCoreWatch::AppEventInfoPtr event, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppLanguageChanged() emitted", __MODULE__, __func__, __LINE__);
     FrameworkTizen*      framework = static_cast<FrameworkTizen*>(data);
     Framework::Observer* observer  = &framework->GetObserver();
 
@@ -259,6 +269,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void AppRegionChanged(AppCoreWatch::AppEventInfoPtr event, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppRegionChanged() emitted", __MODULE__, __func__, __LINE__);
     FrameworkTizen*      framework = static_cast<FrameworkTizen*>(data);
     Framework::Observer* observer  = &framework->GetObserver();
 
@@ -275,6 +286,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void AppBatteryLow(AppCoreWatch::AppEventInfoPtr event, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppBatteryLow() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer*                observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
     int                                 status   = *static_cast<int*>(event->value);
     Dali::DeviceStatus::Battery::Status result   = Dali::DeviceStatus::Battery::Status::NORMAL;
@@ -300,6 +312,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void AppMemoryLow(AppCoreWatch::AppEventInfoPtr event, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppMemoryLow() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer*               observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
     int                                status   = *static_cast<int*>(event->value);
     Dali::DeviceStatus::Memory::Status result   = Dali::DeviceStatus::Memory::Status::NORMAL;
@@ -330,6 +343,7 @@ struct DALI_ADAPTOR_API AppModelWatch::Impl
 
   static void AppDeviceOrientationChanged(AppCoreWatch::AppEventInfoPtr event, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppDeviceOrientationChanged() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer*                    observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
     int                                     status   = *static_cast<int*>(event->value);
     Dali::DeviceStatus::Orientation::Status result   = Dali::DeviceStatus::Orientation::Status::ORIENTATION_0;
index 190f779064101573868ca10a827db109571df630..16c876c7cf139609871e9cb11edb578fd8550ee5 100644 (file)
@@ -195,17 +195,20 @@ struct DALI_ADAPTOR_API AppModelWidget::Impl
 
   void AppExit()
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppExit() emitted", __MODULE__, __func__, __LINE__);
     widget_base_exit();
   }
 
   static int WidgetAppCreate(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > WidgetAppCreate() emitted", __MODULE__, __func__, __LINE__);
     widget_base_on_create();
     return static_cast<int>(static_cast<FrameworkTizen*>(data)->Create());
   }
 
   static int WidgetAppTerminate(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > WidgetAppTerminate() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer* observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
     observer->OnTerminate();
 
@@ -215,6 +218,7 @@ struct DALI_ADAPTOR_API AppModelWidget::Impl
 
   static void AppInit(int argc, char** argv, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppInit() emitted", __MODULE__, __func__, __LINE__);
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wold-style-cast"
     ecore_init();
@@ -230,6 +234,7 @@ struct DALI_ADAPTOR_API AppModelWidget::Impl
 
   static void AppFinish(void)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppFinish() emitted", __MODULE__, __func__, __LINE__);
     ecore_shutdown();
 
     if(Dali::EnvironmentVariable::GetEnvironmentVariable(AUL_LOADER_INIT_ENV))
@@ -247,16 +252,19 @@ struct DALI_ADAPTOR_API AppModelWidget::Impl
 
   static void AppRun(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppRun() emitted", __MODULE__, __func__, __LINE__);
     ecore_main_loop_begin();
   }
 
   static void AppExit(void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppExit() emitted", __MODULE__, __func__, __LINE__);
     ecore_main_loop_quit();
   }
 
   static void AppLanguageChanged(AppCoreWidget::AppEventInfoPtr event, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppLanguageChanged() emitted", __MODULE__, __func__, __LINE__);
     FrameworkTizen*      framework = static_cast<FrameworkTizen*>(data);
     Framework::Observer* observer  = &framework->GetObserver();
 
@@ -273,6 +281,7 @@ struct DALI_ADAPTOR_API AppModelWidget::Impl
 
   static void AppRegionChanged(AppCoreWidget::AppEventInfoPtr event, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppRegionChanged() emitted", __MODULE__, __func__, __LINE__);
     FrameworkTizen*      framework = static_cast<FrameworkTizen*>(data);
     Framework::Observer* observer  = &framework->GetObserver();
 
@@ -289,6 +298,7 @@ struct DALI_ADAPTOR_API AppModelWidget::Impl
 
   static void AppBatteryLow(AppCoreWidget::AppEventInfoPtr event, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppBatteryLow() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer*                observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
     int                                 status   = *static_cast<int*>(event->value);
     Dali::DeviceStatus::Battery::Status result   = Dali::DeviceStatus::Battery::Status::NORMAL;
@@ -314,6 +324,7 @@ struct DALI_ADAPTOR_API AppModelWidget::Impl
 
   static void AppMemoryLow(AppCoreWidget::AppEventInfoPtr event, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppMemoryLow() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer*               observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
     int                                status   = *static_cast<int*>(event->value);
     Dali::DeviceStatus::Memory::Status result   = Dali::DeviceStatus::Memory::Status::NORMAL;
@@ -344,6 +355,7 @@ struct DALI_ADAPTOR_API AppModelWidget::Impl
 
   static void AppDeviceOrientationChanged(AppCoreWidget::AppEventInfoPtr event, void* data)
   {
+    print_log(DLOG_INFO, "DALI", "%s: %s(%d) > AppDeviceOrientationChanged() emitted", __MODULE__, __func__, __LINE__);
     Framework::Observer*                    observer = &static_cast<FrameworkTizen*>(data)->GetObserver();
     int                                     status   = *static_cast<int*>(event->value);
     Dali::DeviceStatus::Orientation::Status result   = Dali::DeviceStatus::Orientation::Status::ORIENTATION_0;
index 99beaf8cf9f6e831c640798beea83b8ce8ae592a..da7116ffcd4c0f1aa3c032a25aeed054f28a9499 100644 (file)
@@ -21,6 +21,8 @@
 // EXTERNAL INCLUDES
 #include <cstring>
 
+#include <dali/integration-api/debug.h>
+
 namespace Dali
 {
 namespace Internal
@@ -59,6 +61,7 @@ bool AbortHandler::AbortOnSignal(int signum)
 {
   bool status = false;
 
+  DALI_LOG_ERROR("AbortOnSignal comes %d\n", signum);
   if(signum < _NSIG)
   {
     SignalHandlerFuncPtr signalHandlerPrevious = signal(signum, &AbortHandler::SignalHandler);
@@ -74,6 +77,7 @@ bool AbortHandler::AbortOnSignal(int signum)
     }
   }
 #pragma GCC diagnostic pop
+  DALI_LOG_ERROR("status : %d, signal mask %x\n", status, mSignalMask);
   return status;
 }
 
@@ -83,6 +87,7 @@ void AbortHandler::SignalHandler(int signum)
   {
     if(gInstance->mCallback)
     {
+      DALI_LOG_ERROR("SignalHandler %d execute by abort handler\n", signum);
       CallbackBase::Execute(*gInstance->mCallback);
     }
   }