From 1bd7932bef84af9a3ab6125b2ae5ff9d1aaeff6a Mon Sep 17 00:00:00 2001 From: beber Date: Fri, 9 Dec 2005 22:28:13 +0000 Subject: Add a profiler in code --- src/espik_net.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/espik_net.c') diff --git a/src/espik_net.c b/src/espik_net.c index 460009c..219e262 100644 --- a/src/espik_net.c +++ b/src/espik_net.c @@ -23,6 +23,7 @@ Ecore_Con_Server* con_sock; void espik_con_init (t_info serv_info) { int nb_launch; + espik_enter(); nb_launch = ecore_con_init (); @@ -56,10 +57,12 @@ void espik_con_init (t_info serv_info) espik_debug_print ("ecore_event_handler_add (ECORE_CON_EVENT_SERVER_DEL)"); exit (-1); } + espik_leave(); } void espik_con_up() { + espik_enter(); printf ("Connected\n"); espik_debug_print ("<<<<<<<< DUMMMMY CODE >>>>>>>"); @@ -79,10 +82,12 @@ void espik_con_up() espik_debug_print ("<<<<<<<< DUMMMMY CODE >>>>>>>"); connected++; + espik_leave(); } void espik_con_shutdown () { + espik_enter(); /* espik_debug_print ("> espik_con_shutdown"); */ if (!connected) @@ -93,12 +98,14 @@ void espik_con_shutdown () /* espik_debug_print ("< espik_con_shutdown"); */ ecore_main_loop_quit (); + espik_leave(); } void espik_raw_send (char *msg) { int len; char* out; + espik_enter(); len = strlen (msg) + 3; @@ -118,4 +125,5 @@ void espik_raw_send (char *msg) /* espik_debug_print ("%d", ret); */ free (out); + espik_leave(); } -- cgit v1.2.3