Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] dump *before* destroy container, correct trace file
[simgrid.git] / src / instr / instr_paje.c
index 33ea5c8..330eb55 100644 (file)
@@ -266,13 +266,13 @@ void destroyContainer (container_t container)
 
   DEBUG1("destroy container %s", container->name);
 
-  //trace my destruction
-  new_pajeDestroyContainer(container);
-
   //obligation to dump previous events because they might
   //reference the container that is about to be destroyed
   TRACE_last_timestamp_to_dump = surf_get_clock();
-  TRACE_paje_dump_buffer(0);
+  TRACE_paje_dump_buffer(1);
+
+  //trace my destruction
+  new_pajeDestroyContainer(container);
 
   //free
   xbt_free (container->name);