aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_main.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2013-03-27 21:42:55 +0900
committerCedric BAIL <cedric.bail@samsung.com>2013-03-27 21:43:45 +0900
commit2063e4353d86bdd89d66f6aca69a480f92254b93 (patch)
treef21c0a269e491868ccbaf20728732ee9a05ddc37 /src/lib/evas/canvas/evas_main.c
parenteina: add eina_log_timing. (diff)
downloadefl-2063e4353d86bdd89d66f6aca69a480f92254b93.tar.gz
efl: integrate eina_log_timing.
Diffstat (limited to 'src/lib/evas/canvas/evas_main.c')
-rw-r--r--src/lib/evas/canvas/evas_main.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c
index bd30ee3857..99634343b5 100644
--- a/src/lib/evas/canvas/evas_main.c
+++ b/src/lib/evas/canvas/evas_main.c
@@ -24,8 +24,6 @@ evas_init(void)
if (++_evas_init_count != 1)
return _evas_init_count;
- eo_init();
-
#ifdef LKDEBUG
if (getenv("EVAS_LOCK_DEBUG"))
{
@@ -50,6 +48,8 @@ evas_init(void)
goto shutdown_eina;
}
+ eo_init();
+
evas_module_init();
if (!evas_async_events_init())
goto shutdown_module;
@@ -60,6 +60,10 @@ evas_init(void)
evas_thread_init();
+ eina_log_timing(_evas_log_dom_global,
+ EINA_LOG_STATE_STOP,
+ EINA_LOG_STATE_INIT);
+
return _evas_init_count;
shutdown_module:
@@ -86,6 +90,10 @@ evas_shutdown(void)
if (--_evas_init_count != 0)
return _evas_init_count;
+ eina_log_timing(_evas_log_dom_global,
+ EINA_LOG_STATE_START,
+ EINA_LOG_STATE_SHUTDOWN);
+
eina_cow_del(evas_object_proxy_cow);
eina_cow_del(evas_object_map_cow);
evas_object_map_cow = NULL;
@@ -104,14 +112,15 @@ evas_shutdown(void)
evas_font_dir_cache_free();
evas_common_shutdown();
evas_module_shutdown();
+ eo_shutdown();
+
eina_log_domain_unregister(_evas_log_dom_global);
+
eina_shutdown();
#ifdef HAVE_EVIL
evil_shutdown();
#endif
- eo_shutdown();
-
return _evas_init_count;
}