summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/spy.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/spy.c b/src/bin/spy.c
index 9672d16..584e2d6 100644
--- a/src/bin/spy.c
+++ b/src/bin/spy.c
@@ -137,7 +137,8 @@ int spy_event(void *data, Ecore_File_Monitor *em, Ecore_File_Event event, const
137 struct logfile *log = data; 137 struct logfile *log = data;
138 fpos_t new_pos; 138 fpos_t new_pos;
139 unsigned long long int filesize; 139 unsigned long long int filesize;
140 140 Eina_Counter *counter;
141 char *counterresult;
141 if( !log ) 142 if( !log )
142 return(ECORE_CALLBACK_RENEW); 143 return(ECORE_CALLBACK_RENEW);
143 144
@@ -177,6 +178,11 @@ int spy_event(void *data, Ecore_File_Monitor *em, Ecore_File_Event event, const
177 178
178 // Message is sent, we can free our structure 179 // Message is sent, we can free our structure
179 logmessages_free(&new_logmessage); 180 logmessages_free(&new_logmessage);
181 eina_counter_stop(counter, 1);
182
183 counterresult = eina_counter_dump(counter);
184 EINA_LOG_DOM_DBG(einadom_spy, "Message processing time :\n%s", counterresult);
185 eina_counter_free(counter);
180 } 186 }
181 else if( event == ECORE_FILE_EVENT_DELETED_SELF 187 else if( event == ECORE_FILE_EVENT_DELETED_SELF
182 || event == ECORE_FILE_EVENT_DELETED_DIRECTORY 188 || event == ECORE_FILE_EVENT_DELETED_DIRECTORY