[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29391 - gnunet/src/testbed
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29391 - gnunet/src/testbed |
Date: |
Wed, 18 Sep 2013 18:27:12 +0200 |
Author: harsha
Date: 2013-09-18 18:27:12 +0200 (Wed, 18 Sep 2013)
New Revision: 29391
Added:
gnunet/src/testbed/profile-testbed.patch
Log:
- profiling looks for testbed service
Added: gnunet/src/testbed/profile-testbed.patch
===================================================================
--- gnunet/src/testbed/profile-testbed.patch (rev 0)
+++ gnunet/src/testbed/profile-testbed.patch 2013-09-18 16:27:12 UTC (rev
29391)
@@ -0,0 +1,43 @@
+Index: Makefile.am
+===================================================================
+--- Makefile.am (revision 29343)
++++ Makefile.am (working copy)
+@@ -59,7 +59,7 @@
+ $(top_builddir)/src/testing/libgnunettesting.la \
+ $(top_builddir)/src/testbed/libgnunettestbed.la \
+ $(top_builddir)/src/arm/libgnunetarm.la \
+- $(LTLIBINTL) $(Z_LIBS)
++ $(LTLIBINTL) $(Z_LIBS) -lprofiler
+ gnunet_service_testbed_DEPENDENCIES = \
+ libgnunettestbed.la
+
+Index: gnunet-service-testbed.c
+===================================================================
+--- gnunet-service-testbed.c (revision 29341)
++++ gnunet-service-testbed.c (working copy)
+@@ -26,6 +26,7 @@
+
+ #include "gnunet-service-testbed.h"
+ #include "gnunet-service-testbed_barriers.h"
++#include <gperftools/profiler.h>
+
+ /***********/
+ /* Globals */
+@@ -956,9 +957,14 @@
+ main (int argc, char *const *argv)
+ {
+ //sleep (15); /* Debugging */
+- return (GNUNET_OK ==
+- GNUNET_SERVICE_run (argc, argv, "testbed",
GNUNET_SERVICE_OPTION_NONE,
+- &testbed_run, NULL)) ? 0 : 1;
++ int ret;
++
++ ProfilerStart (NULL);
++ ret = GNUNET_SERVICE_run (argc, argv, "testbed", GNUNET_SERVICE_OPTION_NONE,
++ &testbed_run, NULL);
++ ProfilerStop ();
++ return (GNUNET_OK == ret) ? 0 : 1;
++
+ }
+
+ /* end of gnunet-service-testbed.c */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29391 - gnunet/src/testbed,
gnunet <=