From a67848585975067e40846fef9cccf6e8a7cd5494 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Wed, 11 Apr 2018 10:46:07 +0200 Subject: [PATCH] rps profiler: more logging --- src/rps/test_rps.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index 9905e07ab..60a743167 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c @@ -2027,6 +2027,19 @@ static void compute_probabilities (uint32_t peer_idx) view_size, i, prob_pull); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "\t\tnumber of possible pull combinations: %" PRIu32 "\n", + binom (view_size, 0.45 * view_size)); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "\t\tnumber of possible pull combinations without %" PRIu32 + ": %" PRIu32 "\n", + i, + binom (view_size - cont_views, 0.45 * view_size)); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "\t\tnumber of possible pull combinations with %" PRIu32 + ": %" PRIu32 "\n", + i, + number_of_being_in_pull_events); if (0 != probs[i]) count_non_zero_prob++; } -- 2.25.1