Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] register power and bandwidth for hosts/links when --cfg=tracing/platform:1
authorschnorr <Lucas.Schnorr@imag.fr>
Wed, 4 Apr 2012 15:20:55 +0000 (17:20 +0200)
committerschnorr <Lucas.Schnorr@imag.fr>
Thu, 5 Apr 2012 12:03:05 +0000 (14:03 +0200)
ChangeLog
src/instr/instr_routing.c

index 1c1e96f..5583490 100644 (file)
--- 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.
index 28e3871..7f582cb 100644 (file)
@@ -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);