Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce the coupling between main library and ruby bindings
[simgrid.git] / src / simdag / sd_global.c
index dd7fd6a..d7c9596 100644 (file)
@@ -84,9 +84,12 @@ void SD_init(int *argc, char **argv)
   sd_global->task_number = 0;
 
   surf_init(argc, argv);
-#ifndef HAVE_TRACING
+
   xbt_cfg_setdefault_string(_surf_cfg_set, "workstation/model",
                             "ptask_L07");
+
+#ifdef HAVE_TRACING
+  TRACE_start ();
 #endif
 }
 
@@ -405,6 +408,9 @@ void SD_exit(void)
     WARN0("SD_exit() called, but SimDag is not running");
     /* we cannot use exceptions here because xbt is not running! */
   }
+#ifdef HAVE_TRACING
+  TRACE_end();
+#endif
 }
 
 /**