Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
properly closing host containers on simulation trace file
[simgrid.git] / src / msg / global.c
index 454fea7..f49fac8 100644 (file)
@@ -81,14 +81,6 @@ void MSG_global_init(int *argc, char **argv)
   return;
 }
 
-/** \ingroup msg_easier_life
- * \brief Traces MSG events in the Paje format.
- */
-
-void MSG_paje_output(const char *filename)
-{
-}
-
 /** \defgroup m_channel_management    Understanding channels
  *  \brief This section briefly describes the channel notion of MSG
  *  (#m_channel_t).
@@ -191,6 +183,9 @@ MSG_error_t MSG_clean(void)
   m_host_t h = NULL;
   m_process_t p = NULL;
 
+#ifdef HAVE_TRACING
+  TRACE_msg_clean ();
+#endif
 
   while ((p = xbt_fifo_pop(msg_global->process_list))) {
     MSG_process_kill(p);
@@ -208,6 +203,9 @@ MSG_error_t MSG_clean(void)
   /* cleanup all resources in the mailbox module */
   MSG_mailbox_mod_exit();
 
+  /* initialization of the action module */
+  _MSG_action_exit();
+
   SIMIX_clean();
 
   return MSG_OK;