Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix: avoiding the execution of TRACE_surf_action when tracing is disabled
[simgrid.git] / src / instr / surf_instr.c
index d1709a6..0d582df 100644 (file)
@@ -234,6 +234,7 @@ int TRACE_surf_link_is_traced (void *link)
 
 void TRACE_surf_action (surf_action_t surf_action, const char *category)
 {
+  if (!IS_TRACING) return;
   if (!IS_TRACING_PLATFORM) return;
   if (!category){
     xbt_die ("invalid tracing category");