From a2920107b7eb7dd7cf66c75d15759eb3eb7b4747 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 25 Jul 2011 13:14:44 +0000 Subject: [PATCH] generate histograms --- contrib/defaults.conf | 1 + src/nse/gnunet-service-nse.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/contrib/defaults.conf b/contrib/defaults.conf index 2461fb54e..26d5d6237 100644 --- a/contrib/defaults.conf +++ b/contrib/defaults.conf @@ -432,6 +432,7 @@ UNIXPATH = /tmp/test-nse-service-nse.unix UNIX_MATCH_UID = YES UNIX_MATCH_GID = YES PROOFFILE = $SERVICEHOME/.nse-proof +HISTOGRAM = $SERVICEHOME/nse-history.log # How 'slowly' should the proof-of-work be constructed (delay # between rounds in ms); sane values between 0 and ~1000. diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index ef8784946..15a9c2b54 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c @@ -45,6 +45,11 @@ #include "gnunet_nse_service.h" #include "nse.h" +/** + * Should we generate a histogram with the time stamps of when we received + * NSE messages to disk? (for performance evaluation only, not useful in + * production) + */ #define ENABLE_HISTOGRAM GNUNET_YES /** -- 2.25.1