[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 15/75: rps profiler: summarize statistics
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 15/75: rps profiler: summarize statistics |
Date: |
Thu, 09 Aug 2018 23:58:12 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit edc238be68955758e99da87337b984abaa656e93
Author: Julius Bünger <address@hidden>
AuthorDate: Thu Jun 7 14:18:49 2018 +0200
rps profiler: summarize statistics
---
src/rps/gnunet-rps-profiler.c | 57 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 56 insertions(+), 1 deletion(-)
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c
index bda43a588..217c2fbbc 100644
--- a/src/rps/gnunet-rps-profiler.c
+++ b/src/rps/gnunet-rps-profiler.c
@@ -2098,6 +2098,22 @@ pre_profiler (struct RPSPeer *rps_peer, struct
GNUNET_RPS_Handle *h)
void write_final_stats (void){
uint32_t i;
+ uint64_t sum_rounds = 0;
+ uint64_t sum_blocks = 0;
+ uint64_t sum_b_mpush = 0;
+ uint64_t sum_b_npush = 0;
+ uint64_t sum_b_npull = 0;
+ uint64_t sum_b_mpush_npull = 0;
+ uint64_t sum_b_npush_npull = 0;
+ uint64_t sum_iss_push = 0;
+ uint64_t sum_iss_pull_req = 0;
+ uint64_t sum_iss_pull_rep = 0;
+ uint64_t sum_sent_push = 0;
+ uint64_t sum_sent_pull_req = 0;
+ uint64_t sum_sent_pull_rep = 0;
+ uint64_t sum_recv_push = 0;
+ uint64_t sum_recv_pull_req = 0;
+ uint64_t sum_recv_pull_rep = 0;
for (i = 0; i < num_peers; i++)
{
@@ -2127,7 +2143,46 @@ void write_final_stats (void){
rps_peers[i].num_recv_push,
rps_peers[i].num_recv_pull_req,
rps_peers[i].num_recv_pull_rep);
- }
+ sum_rounds += rps_peers[i].num_rounds;
+ sum_blocks += rps_peers[i].num_blocks;
+ sum_b_mpush += rps_peers[i].num_blocks_many_push;
+ sum_b_npush += rps_peers[i].num_blocks_no_push;
+ sum_b_npull += rps_peers[i].num_blocks_no_pull;
+ sum_b_mpush_npull += rps_peers[i].num_blocks_many_push_no_pull;
+ sum_b_npush_npull += rps_peers[i].num_blocks_no_push_no_pull;
+ sum_iss_push += rps_peers[i].num_issued_push;
+ sum_iss_pull_req += rps_peers[i].num_issued_pull_req;
+ sum_iss_pull_rep += rps_peers[i].num_issued_pull_rep;
+ sum_sent_push += rps_peers[i].num_sent_push;
+ sum_sent_pull_req += rps_peers[i].num_sent_pull_req;
+ sum_sent_pull_rep += rps_peers[i].num_sent_pull_rep;
+ sum_recv_push += rps_peers[i].num_recv_push;
+ sum_recv_pull_req += rps_peers[i].num_recv_pull_req;
+ sum_recv_pull_rep += rps_peers[i].num_recv_pull_rep;
+ }
+ to_file ("/tmp/rps/final_stats.dat",
+ "SUM %"
+ PRIu64 " %" /* rounds */
+ PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64
" %" /* blocking */
+ PRIu64 " %" PRIu64 " %" PRIu64 " %" /* issued */
+ PRIu64 " %" PRIu64 " %" PRIu64 " %" /* sent */
+ PRIu64 " %" PRIu64 " %" PRIu64 /* recv */,
+ sum_rounds,
+ sum_blocks,
+ sum_b_mpush,
+ sum_b_npush,
+ sum_b_npull,
+ sum_b_mpush_npull,
+ sum_b_npush_npull,
+ sum_iss_push,
+ sum_iss_pull_req,
+ sum_iss_pull_rep,
+ sum_sent_push,
+ sum_sent_pull_req,
+ sum_sent_pull_rep,
+ sum_recv_push,
+ sum_recv_pull_req,
+ sum_recv_pull_rep);
}
/**
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] branch master updated (389f49398 -> 08c410658), gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 01/75: -wip remove jsonapi from identity, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 05/75: -merge branch 'master' of ssh://gnunet.org/gnunet into gsoc2018/rest_api, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 03/75: contrib: rename scripts/report.sh to scripts/gnunet-bugreport and install it., gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 04/75: identity rest api - finished and added test_script, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 02/75: removed jsonapi structures, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 08/75: Add GPL2 licensed openrc service file, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 09/75: gnunet-bugreport: GNUtls->GnuTLS, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 10/75: fix NPE, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 14/75: guix-env.scm: Add python2-future., gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 15/75: rps profiler: summarize statistics,
gnunet <=
- [GNUnet-SVN] [gnunet] 16/75: add option to disable v6, do not pass chunked encoding along, enable bypass of cert validation, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 06/75: extend the list of known package maintainers, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 07/75: cleanup identity rest api, removed jsonapi includes, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 18/75: add -z option to gnunet-namestore-fcfsd, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 17/75: add LEHO records to DNS record sets if we know them from GNS2DNS, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 19/75: add -z option to gnunet-namestore-fcfsd, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 22/75: fix the stupid, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 11/75: README rework part 1, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 29/75: Fix the link to the preliminary documentation, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 23/75: config: file name expansion in all -f cases, gnunet, 2018/08/09