From: schnorr Date: Mon, 3 Jan 2011 14:49:15 +0000 (+0000) Subject: [trace] dump *before* destroy container, correct trace file X-Git-Tag: v3.6_beta2~580 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1d7a1974cb78c7346d819b6438818f89190330db [trace] dump *before* destroy container, correct trace file details: - unconditional dump when any container is destroyed - this is needed in order to create a consistent trace for process migration and task gantt-chart git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9346 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/instr/instr_paje.c b/src/instr/instr_paje.c index 33ea5c85c5..330eb55600 100644 --- a/src/instr/instr_paje.c +++ b/src/instr/instr_paje.c @@ -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);