cedric pushed a commit to branch master.

commit 8309019a1b55fb6bf7b3b0cff6768557c9cbc769
Author: Cedric BAIL <[email protected]>
Date:   Wed Mar 27 22:36:53 2013 +0900

    main: use eina_log_timing.
---
 src/lib/elm_main.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/lib/elm_main.c b/src/lib/elm_main.c
index 82875aa..1c1009a 100644
--- a/src/lib/elm_main.c
+++ b/src/lib/elm_main.c
@@ -552,6 +552,10 @@ elm_quicklaunch_init(int    argc,
    if (!_elm_data_dir) _elm_data_dir = eina_stringshare_add("/");
    if (!_elm_lib_dir) _elm_lib_dir = eina_stringshare_add("/");
 
+   eina_log_timing(_elm_log_dom,
+                  EINA_LOG_STATE_STOP,
+                  EINA_LOG_STATE_INIT);
+
    return _elm_ql_init_count;
 }
 
@@ -642,6 +646,11 @@ elm_quicklaunch_shutdown(void)
 {
    _elm_ql_init_count--;
    if (_elm_ql_init_count > 0) return _elm_ql_init_count;
+
+   eina_log_timing(_elm_log_dom,
+                   EINA_LOG_STATE_STOP,
+                   EINA_LOG_STATE_SHUTDOWN);
+
    if (pfx) eina_prefix_free(pfx);
    pfx = NULL;
    eina_stringshare_del(_elm_data_dir);

-- 

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2

Reply via email to