From a0754d0486b0e6a002ca477ea31e75ea5be4e8e6 Mon Sep 17 00:00:00 2001 From: Misbah Mubarak Date: Thu, 29 Aug 2013 15:00:00 -0400 Subject: [PATCH] Adding statistics collection using lp-io in model-net API (comes from the simple-net stats collection), works for simple-net, torus and the dragonfly network models (updating comments) --- codes/model-net.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/codes/model-net.h b/codes/model-net.h index cd5f19b..cf9d562 100644 --- a/codes/model-net.h +++ b/codes/model-net.h @@ -146,12 +146,15 @@ int model_net_get_packet_size(int net_id); void model_net_add_lp_type(int net_id); +/* used for reporting overall network statistics for e.g. average latency , + * maximum latency, total number of packets finished during the entire + * simulation etc. */ void model_net_report_stats(int net_id); -/* writing model-net statistics */ +/* writing model-net statistics on a per LP basis */ void model_net_write_stats(tw_lpid lpid, mn_stats* stat); -/* printing model-net statistics */ +/* printing model-net statistics on a per LP basis */ void model_net_print_stats(tw_lpid lpid, mn_stats mn_stats_array[]); /* find model-net statistics */ -- 2.26.2