From: schnorr Date: Wed, 4 Apr 2012 15:20:55 +0000 (+0200) Subject: [trace] register power and bandwidth for hosts/links when --cfg=tracing/platform:1 X-Git-Tag: v3_7~99 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/095cae2966284fdabd5442a0c122aadb4f6cd398 [trace] register power and bandwidth for hosts/links when --cfg=tracing/platform:1 --- diff --git a/ChangeLog b/ChangeLog index 1c1e96fd7c..5583490eaa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -85,6 +85,7 @@ SimGrid (3.7) NOT RELEASED; urgency=low * Deprecated function TRACE_msg_set_process_category completely removed * Trace header updated according to the latest Paje file format * Tracing network lazy updates, no longer obligate users to use full updates + * --cfg=tracing/platform:1 also registers power/bandwidth variables Lua: * Improve the API of Lua MSG bindings, using the Lua spirit. diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index 28e387107e..7f582cbae5 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -251,7 +251,7 @@ static void instr_routing_parse_start_link (sg_platf_link_cbarg_t link) container_t new = PJ_container_new (link_name, INSTR_LINK, father); - if (TRACE_categorized() || TRACE_uncategorized()){ + if (TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()){ type_t bandwidth = PJ_type_get_or_null ("bandwidth", new->type); if (bandwidth == NULL){ bandwidth = PJ_type_variable_new ("bandwidth", NULL, new->type); @@ -279,7 +279,7 @@ static void instr_routing_parse_start_host (sg_platf_host_cbarg_t host) container_t father = *(container_t*)xbt_dynar_get_ptr(currentContainer, xbt_dynar_length(currentContainer)-1); container_t new = PJ_container_new (host->id, INSTR_HOST, father); - if (TRACE_categorized() || TRACE_uncategorized()) { + if (TRACE_categorized() || TRACE_uncategorized() || TRACE_platform()) { type_t power = PJ_type_get_or_null ("power", new->type); if (power == NULL){ power = PJ_type_variable_new ("power", NULL, new->type);