[ekiga] Added new script, which analyses debug output of ekiga -d 4



commit 6f316d0e65ba7d9ab9139f9d9cbee191b4216120
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Thu Jun 4 11:59:44 2009 +0200

    Added new script, which analyses debug output of ekiga -d 4
---
 src/Makefile.am          |   13 +++++++------
 src/ekiga-debug-analyser |   29 +++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+), 6 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 5e658a2..00c8b6c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -53,11 +53,11 @@ EXTRA_PROGRAMS =
 
 # Common stuff
 ekiga_SOURCES =			\
-	common.h		
+	common.h
 
 nodist_ekiga_SOURCES =
 
-# Graphical User Interface 
+# Graphical User Interface
 ekiga_SOURCES +=			\
 	gui/accounts.h    		\
 	gui/accounts.cpp		\
@@ -80,7 +80,7 @@ ekiga_SOURCES +=			\
 	gui/statusmenu.h		\
 	gui/statusmenu.cpp
 
-# Endpoints 
+# Endpoints
 ekiga_SOURCES +=				\
 	ekiga.h			                \
 	ekiga.cpp
@@ -92,7 +92,7 @@ ekiga_SOURCES +=                   		\
 	$(top_srcdir)/win32/ekiga-rc.rc
 endif
 
-if HAVE_DBUS 
+if HAVE_DBUS
 ekiga_SOURCES +=		\
 	dbus-helper/dbus.h	\
 	dbus-helper/dbus.cpp
@@ -156,12 +156,13 @@ AM_CXXFLAGS = $(GTK_CFLAGS) $(GLIB_CFLAGS) $(GNOME_CFLAGS) $(DBUS_CFLAGS) $(BONO
 AM_LIBS = $(GTK_LIBS) $(GLIB_LIBS) $(GNOME_LIBS) $(DBUS_LIBS) $(BONOBO_LIBS) $(OPAL_LIBS) $(PTLIB_LIBS) $(SIGC_LIBS) $(XML_LIBS) $(NOTIFY_LIBS)
 
 ekiga_LDADD = \
-	$(top_builddir)/lib/libekiga.la $(top_builddir)/lib/engine/libekiga_engine.la $(AM_LIBS) 
+	$(top_builddir)/lib/libekiga.la $(top_builddir)/lib/engine/libekiga_engine.la $(AM_LIBS)
 
 EXTRA_DIST = \
 	$(service_in_files)		\
 	dbus-helper/dbus-stub.xml	\
-	dbus-helper/dbus-helper-stub.xml
+	dbus-helper/dbus-helper-stub.xml \
+	ekiga-debug-analyser
 
 CLEANFILES = \
 	$(service_DATA)		\
diff --git a/src/ekiga-debug-analyser b/src/ekiga-debug-analyser
new file mode 100755
index 0000000..f0f680f
--- /dev/null
+++ b/src/ekiga-debug-analyser
@@ -0,0 +1,29 @@
+#!/usr/bin/awk -f
+
+# Usage: ekiga-debug-analyser <ekigaDebugOutput
+#   where the output comes from ekiga -d 4 (or 5).
+# Goal: Given a debug output file, shows only the application packets
+#   exchanged on the network.
+#   This especially allows to conveniently compare two debug outputs
+#   in terms of packets exchanged.
+# Written by Eugen Dedu, 03 06 2009
+
+/Sending PDU|PDU [rR]eceived/{  # r is for ekiga v3, R for ekiga v2
+    inside=1;
+    # remove $1 (the date) and $2 (the time), and let $3 (the relative time)
+    $1 = $2 = "";
+    print " ========================", $0;
+    next;
+}
+
+/^ *$/{
+    if (inside)
+        print;
+    inside=0;
+    next;
+}
+
+{
+    if (inside)
+        print;
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]