From f4206a23cb0e9c218713ca1a0c980b9c65ff4710 Mon Sep 17 00:00:00 2001 From: schnorr Date: Sat, 24 Mar 2012 23:23:02 +0100 Subject: [PATCH 1/1] [trace] fix SimDag tracing --- src/simdag/sd_global.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/simdag/sd_global.c b/src/simdag/sd_global.c index 3f1ceb96ac..8f11105ea5 100644 --- a/src/simdag/sd_global.c +++ b/src/simdag/sd_global.c @@ -411,15 +411,16 @@ void SD_exit(void) xbt_swag_free(sd_global->failed_task_set); xbt_swag_free(sd_global->return_set); +#ifdef HAVE_TRACING + TRACE_end(); +#endif + XBT_DEBUG("Exiting Surf..."); surf_exit(); xbt_free(sd_global); sd_global = NULL; -#ifdef HAVE_TRACING - TRACE_end(); -#endif #ifdef HAVE_JEDULE jedule_sd_dump(); jedule_sd_cleanup(); -- 2.20.1