Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] new tracing options to generate graph configurations for triva
[simgrid.git] / src / instr / instr_interface.c
index 635fbf8..550e2b9 100644 (file)
@@ -13,7 +13,7 @@
 XBT_LOG_NEW_DEFAULT_CATEGORY(tracing, "Tracing Interface");
 
 static xbt_dict_t defined_types;
-static xbt_dict_t created_categories;
+xbt_dict_t created_categories;
 
 int TRACE_start()
 {
@@ -116,6 +116,16 @@ int TRACE_end()
   /* close the trace file */
   TRACE_paje_end();
 
+  /* generate uncategorized graph configuration for triva */
+  if (TRACE_get_triva_uncat_conf()){
+    TRACE_generate_triva_uncat_conf();
+  }
+
+  /* generate categorized graph configuration for triva */
+  if (TRACE_get_triva_cat_conf()){
+    TRACE_generate_triva_cat_conf();
+  }
+
   /* activate trace */
   TRACE_desactivate ();
   return 0;