gaugering
authorChristian Grothoff <christian@grothoff.org>
Fri, 18 Feb 2011 21:47:10 +0000 (21:47 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 18 Feb 2011 21:47:10 +0000 (21:47 +0000)
src/peerinfo/perf_peerinfo_api.c

index 4cae7ab60d02b396128c860a3dd5e51990de2c4e..4f1d28f5c9531c5fff50c75eda4e3e5ecfcf37c0 100755 (executable)
@@ -32,6 +32,7 @@
 #include "gnunet_program_lib.h"
 #include "gnunet_time_lib.h"
 #include "peerinfo.h"
+#include <gauger.h>
 
 #define START_SERVICE 1
 
@@ -186,6 +187,8 @@ check ()
           "Received %u/%u calls before timeout\n",
           numpeers,
           NUM_REQUESTS * NUM_REQUESTS / 2);
+  GAUGER ("Peerinfo lookups_peers/s",
+         numpeers/30);
 #if START_SERVICE
   if (0 != GNUNET_OS_process_kill (proc, SIGTERM))
     {