From 15e36483c20911faa2e206969e283d69eb698a96 Mon Sep 17 00:00:00 2001 From: Lucas Schnorr Date: Mon, 12 Nov 2012 15:10:27 +0100 Subject: [PATCH] [trace] do not extract topology graph if user ask to do so (by disabling --cfg=tracing/platform/topology) --- src/instr/instr_routing.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1