summaryrefslogtreecommitdiff
path: root/src/rps/test_rps.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-04-11 10:46:07 +0200
committerJulius Bünger <buenger@mytum.de>2018-04-11 10:46:07 +0200
commita67848585975067e40846fef9cccf6e8a7cd5494 (patch)
tree6b573bd153791095c117420d41976c20a053199b /src/rps/test_rps.c
parent9e0e804cdf11b342a067516ac8d5527c2a774284 (diff)
downloadgnunet-a67848585975067e40846fef9cccf6e8a7cd5494.tar.gz
gnunet-a67848585975067e40846fef9cccf6e8a7cd5494.zip
rps profiler: more logging
Diffstat (limited to 'src/rps/test_rps.c')
-rw-r--r--src/rps/test_rps.c13
1 files changed, 13 insertions, 0 deletions
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)
2027 view_size, 2027 view_size,
2028 i, 2028 i,
2029 prob_pull); 2029 prob_pull);
2030 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2031 "\t\tnumber of possible pull combinations: %" PRIu32 "\n",
2032 binom (view_size, 0.45 * view_size));
2033 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2034 "\t\tnumber of possible pull combinations without %" PRIu32
2035 ": %" PRIu32 "\n",
2036 i,
2037 binom (view_size - cont_views, 0.45 * view_size));
2038 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
2039 "\t\tnumber of possible pull combinations with %" PRIu32
2040 ": %" PRIu32 "\n",
2041 i,
2042 number_of_being_in_pull_events);
2030 2043
2031 if (0 != probs[i]) count_non_zero_prob++; 2044 if (0 != probs[i]) count_non_zero_prob++;
2032 } 2045 }