A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SD_init and SD_exit call TRACE_start/end if tracing is enabled
[simgrid.git]
/
src
/
simdag
/
sd_global.c
diff --git
a/src/simdag/sd_global.c
b/src/simdag/sd_global.c
index
ff315b3
..
d7c9596
100644
(file)
--- a/
src/simdag/sd_global.c
+++ b/
src/simdag/sd_global.c
@@
-87,6
+87,10
@@
void SD_init(int *argc, char **argv)
xbt_cfg_setdefault_string(_surf_cfg_set, "workstation/model",
"ptask_L07");
xbt_cfg_setdefault_string(_surf_cfg_set, "workstation/model",
"ptask_L07");
+
+#ifdef HAVE_TRACING
+ TRACE_start ();
+#endif
}
/**
}
/**
@@
-404,6
+408,9
@@
void SD_exit(void)
WARN0("SD_exit() called, but SimDag is not running");
/* we cannot use exceptions here because xbt is not running! */
}
WARN0("SD_exit() called, but SimDag is not running");
/* we cannot use exceptions here because xbt is not running! */
}
+#ifdef HAVE_TRACING
+ TRACE_end();
+#endif
}
/**
}
/**