[evolution-rss] add time tracking debug functions
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss] add time tracking debug functions
- Date: Thu, 7 Apr 2011 19:26:02 +0000 (UTC)
commit 032b38f6b7a922bb446e5523894cf9a8d5cf1b60
Author: Lucian Langa <lucilanga gnome org>
Date: Wed Apr 6 20:39:13 2011 +0300
add time tracking debug functions
src/debug.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/debug.h b/src/debug.h
index e44b622..592cff2 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -25,5 +25,7 @@
#define dp(f, x...) { g_print("%s(%d) %s():", __FILE__, __LINE__, __FUNCTION__);\
g_print(f, ## x);}
+#define rss_debug_time_start(timer, msg) { g_print("%s\n", msg); timer = g_timer_new();}
+#define rss_debug_time_stop(timer, msg) { g_timer_stop(timer); g_print("%s done %f(s)\n", msg, g_timer_elapsed(timer, NULL));}
#endif /*__DEBUG_H__*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]