From: Lucas Schnorr Date: Mon, 12 Nov 2012 14:10:27 +0000 (+0100) Subject: [trace] do not extract topology graph if user ask to do so (by disabling --cfg=tracin... X-Git-Tag: v3_9_rc1~91^2~122^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/15e36483c20911faa2e206969e283d69eb698a96 [trace] do not extract topology graph if user ask to do so (by disabling --cfg=tracing/platform/topology) --- diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index 256eb7c3dd..e4322171b3 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -139,6 +139,10 @@ static int graph_extraction_filter_out (container_t c1, container_t c2) static void recursiveGraphExtraction (AS_t rc, container_t container, xbt_dict_t filter) { + if (!TRACE_platform_topology()){ + XBT_DEBUG("Graph extracing disable by user."); + return; + } XBT_DEBUG ("Graph extraction for routing_component = %s", rc->name); if (!xbt_dict_is_empty(rc->routing_sons)){ xbt_dict_cursor_t cursor = NULL;