Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cleaning deprecated ways of tracing resource utilization
[simgrid.git] / src / instr / instr_smx.c
index f82c6a4..c9c0bb9 100644 (file)
@@ -8,44 +8,24 @@
 
 #ifdef HAVE_TRACING
 
-static long long int counter = 0;       /* to uniquely identify simix actions */
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_simix, instr, "Tracing Simix");
 
 void TRACE_smx_host_execute(smx_action_t act)
 {
-  if (!TRACE_is_active())
-    return;
-
-  act->counter = counter++;
-  char *category = TRACE_category_get(SIMIX_process_self());
-  if (category) {
-    act->category = xbt_new(char, strlen(category) + 1);
-    strncpy(act->category, category, strlen(category) + 1);
-  }
-  TRACE_surf_resource_utilization_start(act);
+  if (!TRACE_is_active()) return;
+  return;
 }
 
 void TRACE_smx_action_communicate(smx_action_t act, smx_process_t proc)
 {
-  if (!TRACE_is_active())
-    return;
-
-  act->counter = counter++;
-  char *category = TRACE_category_get(proc);
-  if (category) {
-    act->category = xbt_strdup(category);
-  }
-  TRACE_surf_resource_utilization_start(act);
+  if (!TRACE_is_active()) return;
+  return;
 }
 
 void TRACE_smx_action_destroy(smx_action_t act)
 {
-  if (!TRACE_is_active())
-    return;
-
-  if (act->category) {
-    xbt_free(act->category);
-  }
-  TRACE_surf_resource_utilization_end(act);
+  if (!TRACE_is_active()) return;
+  return;
 }
 
 #endif /* HAVE_TRACING */